diff --git a/src/install.sh b/src/install.sh index b4a2f37..583b2ea 100755 --- a/src/install.sh +++ b/src/install.sh @@ -140,12 +140,12 @@ install_file() { mv -v "${path}" "$candidate" || return 1 else info "File '$path' exists and is already with the right content." + rm -f "$tmpfile" + return fi - else - echo "Creating '${path}'." - mv "${tmpfile}" "$path" || return 1 fi - rm -f "$tmpfile" + echo "Creating '${path}'." + mv "${tmpfile}" "$path" || return 1 }