diff options
author | Yigit Sever | 2021-11-07 23:42:15 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-07 23:42:15 +0300 |
commit | 9fa9973c2d2f91cef7bdd26cb52064c13f4d682e (patch) | |
tree | 13aa64b09bc91e16f3dd3217bf3d647559af2cf9 /.local/bin/bukuadd_c | |
parent | 9382166b5522a5d9e2d62e93e702b4d0886cedb4 (diff) | |
parent | fcb2237c01bcd2b7982bb844cea4cf9447f20d03 (diff) | |
download | dotfiles-9fa9973c2d2f91cef7bdd26cb52064c13f4d682e.tar.gz dotfiles-9fa9973c2d2f91cef7bdd26cb52064c13f4d682e.tar.bz2 dotfiles-9fa9973c2d2f91cef7bdd26cb52064c13f4d682e.zip |
Merge remote-tracking branch 'origin/main'
Diffstat (limited to '.local/bin/bukuadd_c')
-rwxr-xr-x | .local/bin/bukuadd_c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/bukuadd_c b/.local/bin/bukuadd_c index 925022a..86f705d 100755 --- a/.local/bin/bukuadd_c +++ b/.local/bin/bukuadd_c | |||
@@ -10,7 +10,7 @@ fi | |||
10 | 10 | ||
11 | FOO=$(buku --nostdin --np --nc -p -1) | 11 | FOO=$(buku --nostdin --np --nc -p -1) |
12 | OUT="$(buku --nostdin --np --nc -a "$url" "$tags" 2>&1)" | 12 | OUT="$(buku --nostdin --np --nc -a "$url" "$tags" 2>&1)" |
13 | if [[ $OUT =~ "ERROR" ]] ; then | 13 | if [[ $OUT =~ "ERROR" ]]; then |
14 | notify-send "Bookmarking Failed" "$OUT" --app-name="buku" --icon="dialog-error" | 14 | notify-send "Bookmarking Failed" "$OUT" --app-name="buku" --icon="dialog-error" |
15 | exit 1 | 15 | exit 1 |
16 | fi | 16 | fi |
@@ -20,7 +20,7 @@ BAR=$FOO | |||
20 | while [[ $BAR == "$FOO" ]]; do | 20 | while [[ $BAR == "$FOO" ]]; do |
21 | sleep 1 | 21 | sleep 1 |
22 | BAR=$(buku --nostdin --np --nc -p -1) | 22 | BAR=$(buku --nostdin --np --nc -p -1) |
23 | done; | 23 | done |
24 | 24 | ||
25 | notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" | 25 | notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" |
26 | 26 | ||