File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ GH_SPACE="jessp01"
5050LATEST_VER=$( curl -sL " https://api.${GIT_BASE_DOMAIN} /repos/$GH_SPACE /$NAME /releases/latest" | grep tag_name| sed ' s@\s*"tag_name":\s*"\(.*\)".*@\1@' | xargs)
5151OS=$( uname)
5252ARCH=$( uname -m)
53- BIN_ARCHIVE=" zaje_ ${OS} _${ARCH} .tar.gz"
53+ BIN_ARCHIVE=" ${NAME} _ ${OS} _${ARCH} .tar.gz"
5454
5555# we need this for the lexers
5656LATEST_HIGHLIGHT_VER=$( curl -sL " https://api.${GIT_BASE_DOMAIN} /repos/$GH_SPACE /$HIGHLIGHT_REPO_NAME /releases/latest" | grep tag_name| sed ' s@\s*"tag_name": "\(.*\)".*@\1@' | xargs)
@@ -111,8 +111,8 @@ if [ "$(id -u)" = 0 ];then
111111# shellcheck disable=SC2059
112112 printf " Copied ${BLUE} ~/bin/${NAME}${NORMAL} to ${BLUE} /usr/local/bin/${NAME}${NORMAL} \n"
113113 # we don't want to override if exists
114- if [ ! -r /etc/profile.d/zaje .sh ]; then
115- cp " $FUNCTIONS_RC_FILE " /etc/profile.d/zaje .sh
114+ if [ ! -r /etc/profile.d/${NAME} .sh ]; then
115+ cp " $FUNCTIONS_RC_FILE " /etc/profile.d/${NAME} .sh
116116# shellcheck disable=SC2059
117117 printf " Copied ${BLUE} $FUNCTIONS_RC_FILE ${NORMAL} to ${BLUE} /etc/profile.d/${NAME} .sh${NORMAL} \n"
118118 fi
You can’t perform that action at this time.
0 commit comments