Skip to content
Snippets Groups Projects
Commit f3451e72 authored by rinpatch's avatar rinpatch
Browse files

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

parent 07a6f8b8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment