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>
dev
Valentin Lab 5 years ago
parent
commit
91ceada080
  1. 6
      src/install.sh

6
src/install.sh

@ -140,12 +140,12 @@ install_file() {
mv -v "${path}" "$candidate" || return 1 mv -v "${path}" "$candidate" || return 1
else else
info "File '$path' exists and is already with the right content." info "File '$path' exists and is already with the right content."
rm -f "$tmpfile"
return
fi
fi fi
else
echo "Creating '${path}'." echo "Creating '${path}'."
mv "${tmpfile}" "$path" || return 1 mv "${tmpfile}" "$path" || return 1
fi
rm -f "$tmpfile"
} }

Loading…
Cancel
Save