mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
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:
parent
99a4d4ea75
commit
f86fcbd609
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1090
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=${BR2_EXTERNAL_HASSOS_PATH}/scripts
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1090
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=${BR2_EXTERNAL_HASSOS_PATH}/scripts
|
||||
|
Loading…
x
Reference in New Issue
Block a user