Skip to content

Commit

Permalink
fix: WSL2 compatibility and warning if xclip no exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscomh committed Feb 1, 2025
1 parent cb61b6f commit fbb5f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shellPass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ _makePass() {
Linux)
if grep -iq Microsoft /proc/version; then
printf "%s" "$PASS" | clip.exe
elif command -v xxclip >/dev/null; then
elif command -v xclip >/dev/null; then
printf "%s" "$PASS" | xclip -sel clip
else
echo "$PASS"
exit 1
exit 125
fi
;;
*)
Expand Down

0 comments on commit fbb5f36

Please sign in to comment.