mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +02:00
fix action
This commit is contained in:
@@ -26,7 +26,7 @@ fi
|
|||||||
# 1st PRAMETER action
|
# 1st PRAMETER action
|
||||||
action="$1"
|
action="$1"
|
||||||
|
|
||||||
if [ ${action} = "prepare-upload" ]; then
|
if [ "${action}" == "prepare-upload" ]; then
|
||||||
|
|
||||||
# make sure that temp directory exists, is clear and can be written by ${defaultUploadUser}
|
# make sure that temp directory exists, is clear and can be written by ${defaultUploadUser}
|
||||||
sudo mkdir -p ${defaultUploadPath} 2>/dev/null
|
sudo mkdir -p ${defaultUploadPath} 2>/dev/null
|
||||||
@@ -39,7 +39,7 @@ if [ ${action} = "prepare-upload" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${action} = "check-upload" ]; then
|
if [ "${action}" ="" "check-upload" ]; then
|
||||||
|
|
||||||
# 2nd PARAMETER is type of upload (optional)
|
# 2nd PARAMETER is type of upload (optional)
|
||||||
type=$2
|
type=$2
|
||||||
|
Reference in New Issue
Block a user