Skip to content

Commit

Permalink
remove -p from command check
Browse files Browse the repository at this point in the history
  • Loading branch information
JensDll committed Jun 30, 2024
1 parent d54fa35 commit fc4c498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unix/.bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ elif [[ $OSTYPE = darwin* ]]; then
fi

# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-command
if ! command -vp poweroff > /dev/null; then
if ! command -v poweroff > /dev/null; then
alias poweroff='shutdown -h now'
fi

if ! command -vp reboot > /dev/null; then
if ! command -v reboot > /dev/null; then
alias reboot='shutdown -r now'
fi

Expand Down

0 comments on commit fc4c498

Please sign in to comment.