Skip to content

Commit

Permalink
run install_zaje.sh in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessp01 committed Jul 19, 2023
1 parent 8eae072 commit 10ad1de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ jobs:
run: |
FMT_ISSUES=$(gofmt -l .)
if test -n "$FMT_ISSUES" ;then printf "gofmt found problems:\n$FMT_ISSUES\n";exit 11; fi
sudo apt update && sudo apt install wget
mkdir /tmp/syntax_files && wget https://github.com/jessp01/gohighlight/raw/master/syntax_files/c.yaml -P /tmp/syntax_files
echo -e "#include <stdio.h>\nint main(int argc, char *argv[])" | ./zaje -s /tmp/syntax_files
sudo ./install_zaje.sh && ls -al /usr/local/bin/zaje && ls -al /etc/profile.d/zaje.sh && type df && df -h
#- name: Test
#run: go test -v
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ $ go install github.com/jessp01/zaje
### Adding and revising lexers

See [Revising and adding new lexers](https://github.com/jessp01/gohighlight#revising-and-adding-new-lexers).

If your new lexer doesn't seem to work, run `zaje` with `-d` or `--debug` to get more info.

### ASCIInema screencast (Not a video!)
Expand Down
2 changes: 2 additions & 0 deletions install_zaje.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ printf "Downloaded archives are available in ${BLUE}$TMP_DIR${NORMAL}.. Feel fre

if [ "$(id -u)" = 0 ];then
cp ~/bin/${NAME} /usr/local/bin/${NAME}
printf "Copied ${BLUE}~/bin/${NAME}${NORMAL} to ${BLUE}/usr/local/bin/${NAME}${NORMAL}"
# we don't want to override if exists
if [ ! -r /etc/profile.d/zaje.sh ];then
cp "$FUNCTIONS_RC_FILE" /etc/profile.d/zaje.sh
printf "Copied ${BLUE}$FUNCTIONS_RC_FILE${NORMAL} to ${BLUE}/etc/profile.d/${NAME}.sh${NORMAL}"
fi
fi

Expand Down

0 comments on commit 10ad1de

Please sign in to comment.