Merge branch 'fix/pleroma-ctl-fix-shift-dash' into 'develop'
pleroma_ctl: fix crashes due to different shift(1) behavior on dash See merge request pleroma/pleroma!1880
This commit is contained in:
commit
96cd66ac1b
|
@ -140,12 +140,16 @@ else
|
|||
FULL_ARGS="$*"
|
||||
|
||||
ACTION="$1"
|
||||
if [ $# -gt 0 ]; then
|
||||
shift
|
||||
fi
|
||||
echo "$1" | grep "^-" >/dev/null
|
||||
if [ $? -eq 1 ]; then
|
||||
SUBACTION="$1"
|
||||
if [ $# -gt 0 ]; then
|
||||
shift
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$ACTION" = "update" ]; then
|
||||
update "$@"
|
||||
|
|
Loading…
Reference in New Issue