diff options
author | Renato Botelho <renato@netgate.com> | 2015-10-14 08:56:17 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-10-14 08:56:17 -0300 |
commit | a4a336b2f6da329a9d07bf12fa2f9bb5164d4de2 (patch) | |
tree | 061a4884624763a1a51f02306d57de19283efe76 /tools/builder_common.sh | |
parent | ba4527dd19319a24296769fd41db56a66a8d7923 (diff) | |
download | pfsense-a4a336b2f6da329a9d07bf12fa2f9bb5164d4de2.zip pfsense-a4a336b2f6da329a9d07bf12fa2f9bb5164d4de2.tar.gz |
Check if image exists
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 7ef86e8..81a9677 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -2021,8 +2021,10 @@ snapshots_create_latest_symlink() { if [ -f "${_image}.gz" ]; then local _image_fixed="${_image}.gz" - else + elif [ -f "${_image}" ]; then local _image_fixed=${_image} + else + return fi local _symlink=$(echo ${_image_fixed} | sed "s,${TIMESTAMP_SUFFIX},-latest,") |