mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check if image exists
This commit is contained in:
parent
ba4527dd19
commit
a4a336b2f6
@ -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,")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user