Merge branch 'bugfix/realpath-over-readlink' into 'develop'

pleroma_ctl: Use realpath(1) instead of readlink(1)

See merge request pleroma/pleroma!4118
This commit is contained in:
tusooa 2024-05-25 00:54:17 +00:00
commit 19b2637c51
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
pleroma_ctl: Use realpath(1) instead of readlink(1)

View File

@ -134,7 +134,7 @@ if [ -z "$1" ] || [ "$1" = "help" ]; then
" "
else else
SCRIPT=$(readlink -f "$0") SCRIPT=$(realpath "$0")
SCRIPTPATH=$(dirname "$SCRIPT") SCRIPTPATH=$(dirname "$SCRIPT")
FULL_ARGS="$*" FULL_ARGS="$*"