diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-29 22:23:19 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-29 22:23:19 +0300 |
commit | b27a92e8faacb25540f08e32f68f37555a889aff (patch) | |
tree | e496b859774953b644008bd7d831b65d25bc7617 /rel/files/bin/pleroma_ctl | |
parent | 922e3d082c38ccd108710e21d4bda8e65b551f9c (diff) | |
parent | eba8acff094cd63088f74424f14c9d807bb8e862 (diff) | |
download | pleroma-b27a92e8faacb25540f08e32f68f37555a889aff.tar.gz |
Merge branch 'develop' into issue/1276
Diffstat (limited to 'rel/files/bin/pleroma_ctl')
-rwxr-xr-x | rel/files/bin/pleroma_ctl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rel/files/bin/pleroma_ctl b/rel/files/bin/pleroma_ctl index 9fc5b0bad..87c486514 100755 --- a/rel/files/bin/pleroma_ctl +++ b/rel/files/bin/pleroma_ctl @@ -140,11 +140,15 @@ else FULL_ARGS="$*" ACTION="$1" - shift - echo "$1" | grep "^-" >/dev/null + if [ $# -gt 0 ]; then + shift + fi + echo "$1" | grep "^-" >/dev/null if [ $? -eq 1 ]; then SUBACTION="$1" - shift + if [ $# -gt 0 ]; then + shift + fi fi if [ "$ACTION" = "update" ]; then |