aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-04-07 19:12:30 -0300
committerEuAndreh <eu@euandre.org>2019-04-07 19:14:55 -0300
commit8066b7a666943dab0aed422f1e595bd926a4a745 (patch)
tree8fcf21572a17cd1902e05ff32c8e851b9d997d91 /scripts
parentUse nixpkgs repository. (diff)
downloaddotfiles-8066b7a666943dab0aed422f1e595bd926a4a745.tar.gz
dotfiles-8066b7a666943dab0aed422f1e595bd926a4a745.tar.xz
Replace =! -z= for =-n=.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buku-archive.sh2
-rwxr-xr-xscripts/buku-delete.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buku-archive.sh b/scripts/buku-archive.sh
index 6ce1e80..2a2a702 100755
--- a/scripts/buku-archive.sh
+++ b/scripts/buku-archive.sh
@@ -21,7 +21,7 @@ for bookmark in $BOOKMARKS; do
done
-if [[ ! -z "$BOOKMARK_ID" ]]; then
+if [[ -n "$BOOKMARK_ID" ]]; then
echo "Archiving $BOOKMARK_ID (URL: $SEL)."
buku -u "$BOOKMARK_ID" --tag - ril
buku -u "$BOOKMARK_ID" --tag + simple-archive
diff --git a/scripts/buku-delete.sh b/scripts/buku-delete.sh
index 552d6b0..01de451 100755
--- a/scripts/buku-delete.sh
+++ b/scripts/buku-delete.sh
@@ -21,7 +21,7 @@ for bookmark in $BOOKMARKS; do
done
-if [[ ! -z "$BOOKMARK_ID" ]]; then
+if [[ -n "$BOOKMARK_ID" ]]; then
echo "Deleting $BOOKMARK_ID (URL: $SEL)."
buku -d "$BOOKMARK_ID" --tacit
else