aboutsummaryrefslogtreecommitdiff
path: root/rel/files/bin/pleroma_ctl
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-25 17:08:01 +0000
committerlain <lain@soykaf.club>2019-10-25 17:08:01 +0000
commita43b899e94c499a9b5cb1a072fe4b96f0f02696f (patch)
tree82488bc1f7dd70959a879f2e42760fe1c23ee309 /rel/files/bin/pleroma_ctl
parent9b26d1608f5ddd64a146dec3c41b029c1b7a4198 (diff)
parent948d0d3b0b2a2eb72a0db41abebd9ad976dfdbf7 (diff)
downloadpleroma-1.1.3.tar.gz
Merge branch 'release/1.1.3' into 'stable'v1.1.3
1.1.3 release See merge request pleroma/pleroma!1884
Diffstat (limited to 'rel/files/bin/pleroma_ctl')
-rwxr-xr-xrel/files/bin/pleroma_ctl10
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