From 5f1592db4c483287f2d55e93e80be311a0d1ad07 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 3 Oct 2021 04:20:07 +0300 Subject: bukuadd: add nostdin so it doesn't complain --- .local/bin/bukuadd_c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '.local/bin') 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 exit 0 fi -FOO=$(buku --np --nc -p -1) -OUT="$(buku --np --nc -a "$url" "$tags" 2>&1)" -#echo "OUT>$OUT" +FOO=$(buku --nostdin --np --nc -p -1) +OUT="$(buku --nostdin --np --nc -a "$url" "$tags" 2>&1)" if [[ $OUT =~ "ERROR" ]] ; then notify-send "Bookmarking Failed" "$OUT" --app-name="buku" --icon="dialog-error" exit 1 @@ -20,8 +19,7 @@ BAR=$FOO while [[ $BAR == "$FOO" ]]; do sleep 1 - BAR=$(buku --np --nc -p -1) - #echo "BAR>$BAR" + BAR=$(buku --nostdin --np --nc -p -1) done; notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" -- cgit v1.2.3-70-g09d2