summaryrefslogtreecommitdiff
path: root/scripts/desktop/sp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/desktop/sp')
-rwxr-xr-xscripts/desktop/sp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/desktop/sp b/scripts/desktop/sp
index 19d38a1..6ccdfce 100755
--- a/scripts/desktop/sp
+++ b/scripts/desktop/sp
@@ -1,6 +1,7 @@
#! /usr/bin/env sh
if [ $# -eq 0 ]; then
- wl-paste | aspell -a
+ INPUT=$(wl-paste)
else
- echo "$@" | aspell -a
+ INPUT="$@"
fi
+echo $INPUT | aspell -a | tee /dev/tty | awk 'FNR==2{ printf $5}' | sed 's/,//' | wl-copy