shell/*: run shellcheck on it

This commit is contained in:
Felix Buehler 2026-02-02 20:13:26 +01:00
parent ff6d6ce2a3
commit de2fa53348
3 changed files with 21 additions and 28 deletions

View file

@ -1,21 +1,15 @@
#!/bin/sh
# Append our default paths
appendpath () {
case ":$PATH:" in
*:"$1":*)
;;
*)
if [ -d "$1" ]; then
export PATH="${PATH:+$PATH:}$1"
fi
esac
set_path(){
if [ -d "${1}" ]; then
export PATH="${1}:${PATH}"
fi
}
appendpath ~/.local/bin
appendpath ~/.bin
set_path ~/.local/bin
set_path ~/.bin
export GOPATH=$HOME/.go
export GOBIN=$HOME/.gobin
appendpath "$GOPATH"/bin
appendpath "$GOBIN"
export GOPATH="${HOME}/.go"
export GOBIN="${HOME}/.gobin"
set_path "${GOPATH}/bin"
set_path "${GOBIN}"