1
0
mirror of https://github.com/alexellis/arkade.git synced 2022-05-07 18:22:49 +03:00

Fix get.sh for CentOS9

Signed-off-by: Richard Gee <richard@technologee.co.uk>

When running `curl -sLS https://get.arkade.dev | sudo sh` on CentOS9 the script exits with a non-zero exit code. Despite this arkade is installed.

This seems to be affecting use of the command under `sudo` as calling `arkade` outside of sudo returns successfully.  This would seem to be due to the PATH setting in `/etc/sudoers` not looking in the installed directory.

This change updates the `get.sh` variable for `SUCCESS_CMD` so be explicit about the binary's location.
This commit is contained in:
Richard Gee
2022-05-04 17:15:28 +01:00
committed by Alex Ellis
parent 28edce511a
commit 63ce1ed3f9

2
get.sh
View File

@@ -9,8 +9,8 @@ export VERIFY_CHECKSUM=0
export ALIAS_NAME="ark"
export OWNER=alexellis
export REPO=arkade
export SUCCESS_CMD="$REPO version"
export BINLOCATION="/usr/local/bin"
export SUCCESS_CMD="$BINLOCATION/$REPO version"
###############################
# Content common across repos #