From fbb5f36ad68404283d08f82f04d1dab0a004890c Mon Sep 17 00:00:00 2001 From: mateuscomh Date: Sat, 1 Feb 2025 12:41:22 -0300 Subject: [PATCH] fix: WSL2 compatibility and warning if xclip no exist --- shellPass.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellPass.sh b/shellPass.sh index 7c5c918..f6a2642 100755 --- a/shellPass.sh +++ b/shellPass.sh @@ -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 ;; *)