Update linkFile()

This commit is contained in:
Santiago Lo Coco 2022-02-15 23:35:18 -03:00
parent abbe362c7e
commit df45b3611f
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ linkFile() {
mv "$2" "${2}.backup" mv "$2" "${2}.backup"
ln -s "$1" "$2" ln -s "$1" "$2"
else else
msg="\nFile already exists: $(basename "$1"), what would you like to do?" msg="\nFile already exists: '${1//$HOME\//}', what would you like to do?"
options=(1 "Skip" 2 "Skip all" 3 "Overwrite" 4 "Overwrite all" 5 "Backup" 6 "Backup all") options=(1 "Skip" 2 "Skip all" 3 "Overwrite" 4 "Overwrite all" 5 "Backup" 6 "Backup all")
selectedOption=$(displayDialogBox --menu "$msg" VALUES 0 "${options[@]}" 3>&1 1>&2 2>&3) selectedOption=$(displayDialogBox --menu "$msg" VALUES 0 "${options[@]}" 3>&1 1>&2 2>&3)
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then