Fix shellcheck issues (#1341)
* Fix issue with latest shellcheck version The latest shellcheck versions use a new error number for non-POSIX string replacement. Change to ignore this new error number. * Ignore shellcheck issue about not following sourced files Newer shellcheck versions also warn when shellcheck does not follow sourcing of files with known path: Not following: ./meta was not specified as input (see shellcheck -x). We check those files separately so ignore this error for the two scripts affected.
This commit is contained in:
@@ -9,13 +9,13 @@ case "$1" in
|
||||
exit 0
|
||||
fi
|
||||
# Be compatible with hassos OS ID
|
||||
# shellcheck disable=SC2039
|
||||
# shellcheck disable=SC3060
|
||||
rauc_os_compatible=${RAUC_MF_COMPATIBLE/haos-/hassos-}
|
||||
if [ "$rauc_os_compatible" = "$RAUC_SYSTEM_COMPATIBLE" ]; then
|
||||
exit 0
|
||||
fi
|
||||
# generic-x86-64: Be compatible with intel-nuc
|
||||
# shellcheck disable=SC2039
|
||||
# shellcheck disable=SC3060
|
||||
rauc_board_compatible=${rauc_os_compatible/generic-x86-64/intel-nuc}
|
||||
if [ "${rauc_board_compatible}" = "$RAUC_SYSTEM_COMPATIBLE" ]; then
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user