Skip to content

Commit

Permalink
remove type output
Browse files Browse the repository at this point in the history
  • Loading branch information
hamvocke committed Nov 30, 2023
1 parent 6973308 commit 4fde0ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lnks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o pipefail
set -o errexit
set -o nounset

if ! type fzf > /dev/null; then
if ! type fzf &> /dev/null; then
echo "fzf is not installed" >&2
exit 1
fi
Expand All @@ -26,11 +26,11 @@ while [[ "$#" -gt 0 ]]; do
shift
done

if type explorer.exe > /dev/null; then
if type explorer.exe &> /dev/null; then
open_command="explorer.exe"
elif type open > /dev/null; then
elif type open &> /dev/null; then
open_command="open"
elif type xdg-open > /dev/null; then
elif type xdg-open &> /dev/null; then
open_command="xdg-open"
fi

Expand Down

0 comments on commit 4fde0ee

Please sign in to comment.