Browse Source

fix: incorrect logic that prevented file to be copied if already present and different

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 5 years ago
parent
commit
91ceada080
  1. 8
      src/install.sh

8
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
}

Loading…
Cancel
Save