mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
pleroma_ctl: fix crashes due to different shift(1) behavior on dash
This commit is contained in:
parent
9b26d1608f
commit
e91d5a23f4
1 changed files with 7 additions and 3 deletions
|
@ -140,11 +140,15 @@ else
|
||||||
FULL_ARGS="$*"
|
FULL_ARGS="$*"
|
||||||
|
|
||||||
ACTION="$1"
|
ACTION="$1"
|
||||||
shift
|
if [ $# -gt 0 ]; then
|
||||||
echo "$1" | grep "^-" >/dev/null
|
shift
|
||||||
|
fi
|
||||||
|
echo "$1" | grep "^-" >/dev/null
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
SUBACTION="$1"
|
SUBACTION="$1"
|
||||||
shift
|
if [ $# -gt 0 ]; then
|
||||||
|
shift
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ACTION" = "update" ]; then
|
if [ "$ACTION" = "update" ]; then
|
||||||
|
|
Loading…
Reference in a new issue