logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 10c067cc47b7bc5928f00b2506039af00cf0076b
parent: da4af72180cca2a7b7c4f4a9e8066b77c67586a0
Author: rinpatch <rinpatch@sdf.org>
Date:   Thu, 13 Jun 2019 19:25:48 +0000

Merge branch 'fix/pleroma-ctl-shellcheck' into 'develop'

pleroma_ctl: fix == instead of = and double quote the path to prevent globing

See merge request pleroma/pleroma!1282

Diffstat:

Mrel/pleroma_ctl4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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