Use $() instead of ``
This commit is contained in:
parent
e89ec993cb
commit
a9cd46082e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue