diff --git a/update_iso.sh b/update_iso.sh index 8f9bc6b..69e2c45 100755 --- a/update_iso.sh +++ b/update_iso.sh @@ -12,7 +12,7 @@ dl_iso() { DATE=$(date --date '30 days ago' +%Y-%m-%d) # If the file doesn't already exist and not older than 30 days - if [ ! `find . -samefile ${ISO_PATH} -newerct ${DATE}` ]; then + if [ ! "$(find . -samefile "${ISO_PATH}" -newerct "${DATE}")" ]; then wget "${URL}" -O "${ISO_PATH}" fi }