2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-04 12:07:58 +00:00

Merge pull request #238 from Obihoernchen/shellcheck

Fix Shellcheck errors
This commit is contained in:
Jarrod Johnson
2026-07-13 07:56:41 -04:00
committed by GitHub
3 changed files with 8 additions and 6 deletions
+2
View File
@@ -53,6 +53,8 @@ _confluent_get_args()
CMPARGS+=("")
fi
GENNED=""
# Whitespace separates candidate groups, while commas group synonyms.
# shellcheck disable=SC2068
for CAND in ${COMP_CANDIDATES[@]}; do
candarray=(${CAND//,/ })
matched=0
@@ -34,8 +34,8 @@ done
if [ -e /tmp/installdisk ]; then
instdisk=$(cat /tmp/installdisk)
else
for blockdev in $(ls /sys/class/block/); do
shortname=$(basename $blockdev)
for blockdev in /sys/class/block/*; do
shortname=$(basename "$blockdev")
if [ "$shortname" != "${shortname%loop*}" ]; then
continue
fi
@@ -62,7 +62,7 @@ else
done
fi
if [ -z "$instdisk" ]; then
if [ ! -z "$sraid"]; then
if [ ! -z "$sraid" ]; then
instdisk=$sraid
elif [ ! -z "$onbdisk" ]; then
instdisk=$onbdisk
@@ -34,8 +34,8 @@ done
if [ -e /tmp/installdisk ]; then
instdisk=$(cat /tmp/installdisk)
else
for blockdev in $(ls /sys/class/block/); do
shortname=$(basename $blockdev)
for blockdev in /sys/class/block/*; do
shortname=$(basename "$blockdev")
if [ "$shortname" != "${shortname%loop*}" ]; then
continue
fi
@@ -62,7 +62,7 @@ else
done
fi
if [ -z "$instdisk" ]; then
if [ ! -z "$sraid"]; then
if [ ! -z "$sraid" ]; then
instdisk=$sraid
elif [ ! -z "$onbdisk" ]; then
instdisk=$onbdisk