Use $() instead of ``

This commit is contained in:
Jeremy Gardais 2017-02-15 14:39:37 +01:00
parent e89ec993cb
commit a9cd46082e
1 changed files with 1 additions and 1 deletions

View File

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