Skip to content

Commit

Permalink
style: use snake_case variable name for xdg_basher_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Jun 11, 2021
1 parent 6fc8432 commit 961430e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ die() {
exit 1
}

xdgBasherDir="${XDG_DATA_HOME:-$HOME/.local/share}/basher"
xdg_basher_dir="${XDG_DATA_HOME:-$HOME/.local/share}/basher"

## stop if basher is already installed
[[ -d "$HOME/.basher" ]] && die "basher is already installed on [$HOME/.basher]"
[[ -d "$xdgBasherDir" ]] && die "basher is already installed on [$xdgBasherDir]"
[[ -d "$xdg_basher_dir" ]] && die "basher is already installed on [$xdg_basher_dir]"

## stop if git is not installed
git version >/dev/null 2>&1 || die "git is not installed on this machine"
Expand Down
6 changes: 3 additions & 3 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ die() {
exit 1
}

xdgBasherDir="${XDG_DATA_HOME:-$HOME/.local/share}/basher"
xdg_basher_dir="${XDG_DATA_HOME:-$HOME/.local/share}/basher"

## stop if basher is not installed
[[ -d "$HOME/.basher" || -d "$xdgBasherDir" ]] || die "basher doesn't seem to be installed on [$HOME/.basher] or [$xdgBasherDir]"
[[ -d "$HOME/.basher" || -d "$xdg_basher_dir" ]] || die "basher doesn't seem to be installed on [$HOME/.basher] or [$xdg_basher_dir]"
echo ". remove basher code and installed packages"
basher list
sleep 2
[ -d "$HOME/.basher" ] && rm -fr "$HOME/.basher"
[ -d "$xdgBasherDir" ] && rm -fr "$xdgBasherDir"
[ -d "$xdg_basher_dir" ] && rm -fr "$xdg_basher_dir"

## now check what shell is running
shell_type=$(basename "$SHELL")
Expand Down

0 comments on commit 961430e

Please sign in to comment.