From 4cbd38e4befbe8906a130a92d086506160ff641b Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 15 Feb 2022 23:53:12 -0300 Subject: [PATCH] Fix bug --- scripts/linkFiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/linkFiles.sh b/scripts/linkFiles.sh index 405d122..95419b0 100755 --- a/scripts/linkFiles.sh +++ b/scripts/linkFiles.sh @@ -10,7 +10,7 @@ linkFile() { mv "$2" "${2}.backup" ln -s "$1" "$2" else - [ -h "$2" ] && [ "$1" = $(realpath "$2") ] && continue + [ -h "$2" ] && [ "$1" = $(realpath "$2") ] && return msg="\nFile already exists: '${2//$HOME\//}', what would you like to do?" options=(1 "Skip" 2 "Skip all" 3 "Overwrite" 4 "Overwrite all" 5 "Backup" 6 "Backup all")