diff options
author | Yigit Sever | 2021-10-03 04:20:07 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-03 04:20:07 +0300 |
commit | 5f1592db4c483287f2d55e93e80be311a0d1ad07 (patch) | |
tree | 3e2631c59a42bfcf898021e33131808d82d68739 | |
parent | 23fe19437d45918b3292b58a6e232d3df8ad6ae3 (diff) | |
download | dotfiles-5f1592db4c483287f2d55e93e80be311a0d1ad07.tar.gz dotfiles-5f1592db4c483287f2d55e93e80be311a0d1ad07.tar.bz2 dotfiles-5f1592db4c483287f2d55e93e80be311a0d1ad07.zip |
bukuadd: add nostdin so it doesn't complain
-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" |