mirror of https://github.com/FOME-Tech/fome-fw.git
check for empty or null
This commit is contained in:
parent
23cd5be8df
commit
6767720927
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue