Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/intentions-queue
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-06-05 20:26:21 +0200
committerErich Eckner <git@eckner.net>2021-06-05 20:26:21 +0200
commit6f59df0faa06e9e5b2127d8376b12bb1cf2db5fd (patch)
treeb380377a92c28beb05b8b249905b684fe4a7cd9e /lib/intentions-queue
parent8e9130a9d21a2d73f8c354e2a3f1d9ccc6f7ea73 (diff)
make shellcheck happy again
Diffstat (limited to 'lib/intentions-queue')
-rwxr-xr-xlib/intentions-queue6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/intentions-queue b/lib/intentions-queue
index c0d88a8..802d1ca 100755
--- a/lib/intentions-queue
+++ b/lib/intentions-queue
@@ -2,7 +2,7 @@
# contains functions related to the intentions-queue
-# shellcheck disable=SC2039
+# shellcheck disable=SC2039,SC3043
if [ -z "${base_dir}" ]; then
# just to make shellcheck happy
@@ -15,7 +15,7 @@ fi
# $package_database_lock_file externally
intent_something() {
local next_number
- if [ "x$1" = 'x-n' ]; then
+ if [ "$1" = '-n' ]; then
cat
return
fi
@@ -75,7 +75,7 @@ execute_intention() {
# with -n: return immediately
# without -n: wait until nothing more to do
intentions_left() {
- if [ ! "x$1" = 'x-n' ]; then
+ if [ ! "$1" = '-n' ]; then
while intentions_left -n; do
sleep 1
done