projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'prepared-statements-settings' into 'develop'
[akkoma]
/
rel
/
files
/
bin
/
pleroma_ctl
diff --git
a/rel/files/bin/pleroma_ctl
b/rel/files/bin/pleroma_ctl
index 90f87a9909ed3960976019088645119c8958a917..87c486514008b84086e308efee4f7774cc85afad 100755
(executable)
--- a/
rel/files/bin/pleroma_ctl
+++ b/
rel/files/bin/pleroma_ctl
@@
-140,12
+140,16
@@
else
FULL_ARGS="$*"
ACTION="$1"
FULL_ARGS="$*"
ACTION="$1"
- shift
-
- if [ "$(echo \"$1\" | grep \"^-\" >/dev/null)" = false ]; then
- SUBACTION="$1"
+ if [ $# -gt 0 ]; then
shift
fi
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 "$@"
if [ "$ACTION" = "update" ]; then
update "$@"