From a9cd46082e8287bc910c7f42f79aec1fff1f99a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 15 Feb 2017 14:39:37 +0100 Subject: [PATCH] Use $() instead of `` --- update_iso.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }