summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/bukuadd_c8
1 files changed, 3 insertions, 5 deletions
diff --git a/.local/bin/bukuadd_c b/.local/bin/bukuadd_c
index d4e1a3d..925022a 100755
--- a/.local/bin/bukuadd_c
+++ b/.local/bin/bukuadd_c
@@ -8,9 +8,8 @@ if [[ $? -ne 0 ]]; then
8 exit 0 8 exit 0
9fi 9fi
10 10
11FOO=$(buku --np --nc -p -1) 11FOO=$(buku --nostdin --np --nc -p -1)
12OUT="$(buku --np --nc -a "$url" "$tags" 2>&1)" 12OUT="$(buku --nostdin --np --nc -a "$url" "$tags" 2>&1)"
13#echo "OUT>$OUT"
14if [[ $OUT =~ "ERROR" ]] ; then 13if [[ $OUT =~ "ERROR" ]] ; then
15 notify-send "Bookmarking Failed" "$OUT" --app-name="buku" --icon="dialog-error" 14 notify-send "Bookmarking Failed" "$OUT" --app-name="buku" --icon="dialog-error"
16 exit 1 15 exit 1
@@ -20,8 +19,7 @@ BAR=$FOO
20 19
21while [[ $BAR == "$FOO" ]]; do 20while [[ $BAR == "$FOO" ]]; do
22 sleep 1 21 sleep 1
23 BAR=$(buku --np --nc -p -1) 22 BAR=$(buku --nostdin --np --nc -p -1)
24 #echo "BAR>$BAR"
25done; 23done;
26 24
27notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" 25notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark"