check for empty or null

This commit is contained in:
Matthew Kennedy 2023-05-12 12:02:10 -07:00
parent 23cd5be8df
commit 6767720927
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ echo "RUSEFI_BUILD_FTP_USER=$RUSEFI_BUILD_FTP_USER"
TIMESTAMP=$(date "+%Y%m%d_%H%M%S")
# No arg 3 means this is a snapshot "no name", just use the timestamp
if [ -z $3 ]; then
if [ -z $3 ] || [ $3 = "null" ]; then
export FOLDER="temp/fome.snapshot.${TIMESTAMP}.${BUNDLE_NAME}"
else
export FOLDER="temp/fome.${3}.${BUNDLE_NAME}"