Browse Source

pleroma_ctl: fix crashes due to different shift(1) behavior on dash

tags/v1.1.4
rinpatch 4 years ago
parent
commit
e91d5a23f4
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      rel/files/bin/pleroma_ctl

+ 7
- 3
rel/files/bin/pleroma_ctl View File

@@ -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


Loading…
Cancel
Save