Skip to content
Snippets Groups Projects
Commit c781ef43 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

force install when target dir is empty (and when download is no update)

parent cb4cae8c
Branches
No related tags found
No related merge requests found
......@@ -179,6 +179,11 @@ function deploy(){
header "Switch into install dir ${installdir} ..."
test -d "${installdir}" || mkdir -p "${installdir}"
cd ${installdir} || exit 2
ls -1 * >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "INFO: target directory is empty."
isupdate=$isupdate+1
fi
# ----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment