pleroma_ctl: Fix attempting to use RPC for config generation

This commit is contained in:
rinpatch 2019-10-19 00:37:39 +03:00
commit 901bf0fb8c
2 changed files with 6 additions and 2 deletions

View file

@ -141,8 +141,8 @@ else
ACTION="$1"
shift
if [ "$(echo \"$1\" | grep \"^-\" >/dev/null)" = false ]; then
echo "$1" | grep "^-" >/dev/null
if [ $? -eq 1 ]; then
SUBACTION="$1"
shift
fi