Skip to content

Commit

Permalink
chore(tmux-lazygit-popup) use command -v to verufy bins
Browse files Browse the repository at this point in the history
  • Loading branch information
kampanosg committed Jul 3, 2024
1 parent 5aaa76e commit c98c41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/tmux-lazygit-popup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ fi;
return 0
}
args=("$@")
lazygit -v > /dev/null 2>&1
command -v lazygit > /dev/null 2>&1
__AS=$?;
if [ $__AS != 0 ]; then
echo "cannot execute lazygit command. make sure it is installed"
exit__23_v0 1 > /dev/null 2>&1;
__AF_exit23_v0__7=$__AF_exit23_v0;
echo $__AF_exit23_v0__7 > /dev/null 2>&1
fi
tmux -V > /dev/null 2>&1
command -v tmux > /dev/null 2>&1
__AS=$?;
if [ $__AS != 0 ]; then
echo "cannot execute tmux command. make sure it is installed"
Expand Down
4 changes: 2 additions & 2 deletions tmux-lazygit-popup.ab
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { exit } from "std"
import { parse_args } from "./utils.ab"

main(args) {
silent $lazygit -v$ failed {
silent $command -v lazygit$ failed {
echo "cannot execute lazygit command. make sure it is installed"
exit(1)
}

silent $tmux -V$ failed {
silent $command -v tmux$ failed {
echo "cannot execute tmux command. make sure it is installed"
exit(1)
}
Expand Down

0 comments on commit c98c41d

Please sign in to comment.