summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorYigit Sever2021-10-03 04:20:07 +0300
committerYigit Sever2021-10-03 04:20:07 +0300
commit5f1592db4c483287f2d55e93e80be311a0d1ad07 (patch)
tree3e2631c59a42bfcf898021e33131808d82d68739 /.local
parent23fe19437d45918b3292b58a6e232d3df8ad6ae3 (diff)
downloaddotfiles-5f1592db4c483287f2d55e93e80be311a0d1ad07.tar.gz
dotfiles-5f1592db4c483287f2d55e93e80be311a0d1ad07.tar.bz2
dotfiles-5f1592db4c483287f2d55e93e80be311a0d1ad07.zip
bukuadd: add nostdin so it doesn't complain
diffstat (limited to '.local')
-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"