From 3e7adde63840ea4301291a2779bb90c6d68c996c Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Sat, 6 Feb 2021 20:25:56 +0200 Subject: [PATCH] install: Move to double brackets in check_for-backup check --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 50f31f29..28a48ebd 100755 --- a/install.sh +++ b/install.sh @@ -78,7 +78,7 @@ function backup_append() { } function check_for_backup() { - if ! [ -e "$HOME/$BACKUP_FILE" ]; then + if ! [[ -e "$HOME/$BACKUP_FILE" ]]; then return fi echo -e "\033[0;33mBackup file already exists. Make sure to backup your .bashrc before running this installation.\033[0m" >&2