Fixed some shellcheck warnings

Also fixed one broken case of `unset`.
This commit is contained in:
Nils Winkler
2018-05-31 18:05:25 +02:00
parent 0028dc7661
commit 5d99d6cb9b
2 changed files with 8 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ esac
BACKUP_FILE=$CONFIG_FILE.bak
if [ ! -e "$HOME/$BACKUP_FILE" ]; then
echo -e "\033[0;33mBackup file "$HOME/$BACKUP_FILE" not found.\033[0m" >&2
echo -e "\033[0;33mBackup file $HOME/$BACKUP_FILE not found.\033[0m" >&2
test -w "$HOME/$CONFIG_FILE" &&
mv "$HOME/$CONFIG_FILE" "$HOME/$CONFIG_FILE.uninstall" &&