pleroma_ctl: fix == instead of = and double quote the path to prevent globing
This commit is contained in:
parent
da4af72180
commit
0876ac05ba
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# XXX: This should be removed when elixir's releases get custom command support
|
# XXX: This should be removed when elixir's releases get custom command support
|
||||||
if [ -z "$1" ] || [ "$1" == "help" ]; then
|
if [ -z "$1" ] || [ "$1" = "help" ]; then
|
||||||
echo "Usage: $(basename "$0") COMMAND [ARGS]
|
echo "Usage: $(basename "$0") COMMAND [ARGS]
|
||||||
|
|
||||||
The known commands are:
|
The known commands are:
|
||||||
|
@ -15,5 +15,5 @@ if [ -z "$1" ] || [ "$1" == "help" ]; then
|
||||||
else
|
else
|
||||||
SCRIPT=$(readlink -f "$0")
|
SCRIPT=$(readlink -f "$0")
|
||||||
SCRIPTPATH=$(dirname "$SCRIPT")
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||||
$SCRIPTPATH/pleroma eval 'Pleroma.ReleaseTasks.run("'"$*"'")'
|
"$SCRIPTPATH"/pleroma eval 'Pleroma.ReleaseTasks.run("'"$*"'")'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue