Skip to content

Commit

Permalink
Merge pull request #2436 from OSInside/new-shellcheck
Browse files Browse the repository at this point in the history
Support for new shellcheck
  • Loading branch information
Conan-Kudo authored Jan 19, 2024
2 parents 869b280 + 08580b0 commit ed55ef5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function get_disk_list {
continue
fi
disk_size=$(echo "${disk_meta}" | cut -f2 -d:)
if [ ${max_disk} -gt 0 ]; then
if [ "${max_disk}" -gt 0 ]; then
local disk_size_bytes
disk_size_bytes=$(binsize_to_bytesize "${disk_size}") || \
disk_size_bytes=0
Expand Down
2 changes: 1 addition & 1 deletion dracut/modules.d/99kiwi-lib/kiwi-filesystem-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function probe_filesystem {
if [ "${fstype}" = "crypto_LUKS" ];then
fstype=luks
fi
echo ${fstype}
echo "${fstype}"
}

#======================================
Expand Down
2 changes: 1 addition & 1 deletion dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function create_dasd_partitions {
echo >> ${partition_setup_file}
continue
fi
echo $cmd >> ${partition_setup_file}
echo "$cmd" >> ${partition_setup_file}
done
echo "w" >> ${partition_setup_file}
echo "q" >> ${partition_setup_file}
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ commands =
flake8 --statistics -j auto --count {toxinidir}/kiwi
flake8 --statistics -j auto --count {toxinidir}/test/unit
flake8 --statistics -j auto --count {toxinidir}/test/scripts
bash -c 'shellcheck -e SC1091,SC1090,SC2001,SC2174,SC1117,SC2048 {toxinidir}/dracut/modules.d/*/*.sh -s bash'
bash -c 'shellcheck -e SC1091,SC1090,SC2001,SC2174,SC1117,SC2048 {toxinidir}/kiwi/config/functions.sh -s bash'
bash -c 'shellcheck -e SC1091,SC1090,SC2001,SC2174,SC1117,SC2048,SC2004 {toxinidir}/dracut/modules.d/*/*.sh -s bash'
bash -c 'shellcheck -e SC1091,SC1090,SC2001,SC2174,SC1117,SC2048,SC2004 {toxinidir}/kiwi/config/functions.sh -s bash'


# PyPi upload
Expand Down

0 comments on commit ed55ef5

Please sign in to comment.