Cleanup user notifications when autoinstall is set

This commit is contained in:
Sky Faber 2015-02-08 10:18:45 -08:00
commit e2f4222aa1

View file

@ -218,19 +218,19 @@ if [ "${REDHAT}" != "yes" ]; then
fi fi
if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then
if [ "${AUTOINSTALL}" != "yes" ]; then
echo "File already exists, won't download." echo "File already exists, won't download."
if [ "${AUTOINSTALL}" != "yes" ]; then
exit 2 exit 2
fi fi
SKIP_DOWNLOAD="yes" SKIP_DOWNLOAD="yes"
fi fi
if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then
echo "Note! File exists, but asked to overwrite with new copy"
fi
if [ "${SKIP_DOWNLOAD}" == "no" ]; then if [ "${SKIP_DOWNLOAD}" == "no" ]; then
if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then
echo "Note! File exists, but asked to overwrite with new copy"
fi
echo -ne "Downloading release \"${FILENAME}\"..." echo -ne "Downloading release \"${FILENAME}\"..."
ERROR=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "${DOWNLOAD}" -O "${DOWNLOADDIR}/${FILENAME}" 2>&1) ERROR=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "${DOWNLOAD}" -O "${DOWNLOADDIR}/${FILENAME}" 2>&1)
CODE=$? CODE=$?