pash: clean up

This commit is contained in:
Dylan Araps 2019-11-30 11:57:12 +00:00
parent 01a92c8a66
commit c56ba9d2a4
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 2 deletions

3
pash
View File

@ -75,8 +75,7 @@ pw_copy() {
# If the 'sleep' fails, kill the script. This is the # If the 'sleep' fails, kill the script. This is the
# simplest method of aborting from a subshell. # simplest method of aborting from a subshell.
[ "$PASH_TIMEOUT" != off ] && { [ "$PASH_TIMEOUT" != off ] && {
printf 'Clearing clipboard in "%s" seconds.\n' \ printf 'Clearing clipboard in "%s" seconds.\n' "${PASH_TIMEOUT:=15}"
"${PASH_TIMEOUT:=15}"
sleep "$PASH_TIMEOUT" || kill 0 sleep "$PASH_TIMEOUT" || kill 0
$PASH_CLIP </dev/null $PASH_CLIP </dev/null