summaryrefslogtreecommitdiff
path: root/rel
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-13 22:16:57 +0300
committerrinpatch <rinpatch@sdf.org>2019-06-13 22:16:57 +0300
commit0876ac05ba833c3f8abdb30845860fc15f959f3a (patch)
treee30323c9b63f08d6918657a60cec7e3ca7fbb15d /rel
parentda4af72180cca2a7b7c4f4a9e8066b77c67586a0 (diff)
pleroma_ctl: fix == instead of = and double quote the path to prevent globing
Diffstat (limited to 'rel')
-rwxr-xr-xrel/pleroma_ctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/rel/pleroma_ctl b/rel/pleroma_ctl
index ef2717c44..2e709a8a6 100755
--- a/rel/pleroma_ctl
+++ b/rel/pleroma_ctl
@@ -1,6 +1,6 @@
#!/bin/sh
# 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]
The known commands are:
@@ -15,5 +15,5 @@ if [ -z "$1" ] || [ "$1" == "help" ]; then
else
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
- $SCRIPTPATH/pleroma eval 'Pleroma.ReleaseTasks.run("'"$*"'")'
+ "$SCRIPTPATH"/pleroma eval 'Pleroma.ReleaseTasks.run("'"$*"'")'
fi