forked from AkkomaGang/akkoma
pleroma_ctl: fix crashes due to different shift(1) behavior on dash
This commit is contained in:
parent
07a6f8b8a3
commit
f3451e723b
1 changed files with 7 additions and 3 deletions
|
@ -140,12 +140,16 @@ else
|
||||||
FULL_ARGS="$*"
|
FULL_ARGS="$*"
|
||||||
|
|
||||||
ACTION="$1"
|
ACTION="$1"
|
||||||
|
if [ $# -gt 0 ]; then
|
||||||
shift
|
shift
|
||||||
|
fi
|
||||||
echo "$1" | grep "^-" >/dev/null
|
echo "$1" | grep "^-" >/dev/null
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
SUBACTION="$1"
|
SUBACTION="$1"
|
||||||
|
if [ $# -gt 0 ]; then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$ACTION" = "update" ]; then
|
if [ "$ACTION" = "update" ]; then
|
||||||
update "$@"
|
update "$@"
|
||||||
|
|
Loading…
Reference in a new issue