Skip to content

Commit dc265e9

Browse files
committed
- Update highlight submodule
- Replace literal references to `zaje` with $NAME
1 parent 51df339 commit dc265e9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

highlight

install_zaje.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GH_SPACE="jessp01"
5050
LATEST_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)
5151
OS=$(uname)
5252
ARCH=$(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
5656
LATEST_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

0 commit comments

Comments
 (0)