diff options
| -rwxr-xr-x | bin/menuscripts/mpass | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass index 870efb1..01c40e3 100755 --- a/bin/menuscripts/mpass +++ b/bin/menuscripts/mpass @@ -17,9 +17,8 @@ do  	file="$file/$choice"  done -pass show -c "$file"  - -test -n "$WAYLAND_DISPLAY" && pgrep -f "cliphist" && -	cliphist list | -		tail -1 | -		cliphist delete +pass show -c "$file" && +	if [ -n "$WAYLAND_DISPLAY" ] && cliphist list >/dev/null +then +	cliphist list | head -n 1 | cliphist delete +fi  | 
