Demand exactly 1 argument

pyinfra
0x90.space 2023-12-07 21:55:15 +00:00
parent ccb363129d
commit 2de79928de
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ if [ $(id -u) -eq 0]
fi
# check file permissions
if [[ -w ~/wp-content/plugins ]]
if [ -w ~/wp-content/plugins ]
then
echo "Missing file permissions. To fix this, run this command as root:"
echo " chown $USER /home/$USER/wp-content/plugins -R"
@ -19,7 +19,7 @@ if [[ -w ~/wp-content/plugins ]]
fi
# we need at least one argument
if [ $# -eq 0 ]
if [ ! $# -eq 1 ]
then
echo "usage: ./update-app.sh \$app"
exit 0