diff --git a/files/xkb/scripts/functions.sh b/files/xkb/scripts/functions.sh index c909e6f..feadb74 100755 --- a/files/xkb/scripts/functions.sh +++ b/files/xkb/scripts/functions.sh @@ -17,7 +17,7 @@ copy_file () { file_to=$2 if [ ! -f "$file_from" ]; then - [ -f "$file_to" ] && rm "$file_to" + [ ! -f "$file_to" ] || rm "$file_to" elif [ ! -f "$file_to" ] || grep -qx "// Generated by KLFC .*" "$file_to" || confirm "$file_to already exists. Overwrite?"; then cp "$file_from" "$file_to" fi