diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/bukuadd_c | 8 |
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 |
9 | fi | 9 | fi |
10 | 10 | ||
11 | FOO=$(buku --np --nc -p -1) | 11 | FOO=$(buku --nostdin --np --nc -p -1) |
12 | OUT="$(buku --np --nc -a "$url" "$tags" 2>&1)" | 12 | OUT="$(buku --nostdin --np --nc -a "$url" "$tags" 2>&1)" |
13 | #echo "OUT>$OUT" | ||
14 | if [[ $OUT =~ "ERROR" ]] ; then | 13 | if [[ $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 | ||
21 | while [[ $BAR == "$FOO" ]]; do | 20 | while [[ $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" | ||
25 | done; | 23 | done; |
26 | 24 | ||
27 | notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" | 25 | notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" |