From 408bc676199a94d7fec9fc4a2d62dabd961afc7b Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 27 Nov 2022 21:44:50 +0100 Subject: [PATCH] Add shebangs for shellcheck (#4493) * Add shebangs for shellcheck See #AR-1406 * Add shebangs for shellcheck Also for `extensions` scripts --- extensions/detect-unused-extensions.sh | 1 + extensions/flash-kernel.sh | 1 + extensions/gen-sample-extension-docs.sh | 1 + extensions/grub-riscv64.sh | 1 + extensions/grub-sbc-media.sh | 1 + extensions/grub.sh | 1 + extensions/marvell-tools.sh | 1 + extensions/nvidia.sh | 1 + extensions/rkbin-tools.sh | 1 + extensions/sunxi-tools.sh | 1 + lib/extensions.sh | 1 + lib/functions/bsp/bsp-cli.sh | 1 + lib/functions/bsp/bsp-desktop.sh | 1 + lib/functions/bsp/utils-bsp.sh | 1 + lib/functions/cli/cli-entrypoint.sh | 1 + lib/functions/cli/utils-cli.sh | 1 + lib/functions/compilation/atf.sh | 1 + lib/functions/compilation/debs.sh | 1 + lib/functions/compilation/kernel-debs.sh | 1 + lib/functions/compilation/kernel.sh | 1 + .../compilation/patch/kernel-bootsplash-and-drivers.sh | 1 + lib/functions/compilation/patch/patching.sh | 1 + lib/functions/compilation/uboot.sh | 1 + lib/functions/compilation/utils-compilation.sh | 1 + lib/functions/configuration/aggregation.sh | 1 + lib/functions/configuration/config-desktop.sh | 1 + lib/functions/configuration/interactive.sh | 1 + lib/functions/configuration/menu.sh | 1 + lib/functions/extras/buildpkg.sh | 1 + lib/functions/extras/installpkg.sh | 1 + lib/functions/general/chroot-helpers.sh | 1 + lib/functions/general/downloads.sh | 1 + lib/functions/general/git.sh | 1 + lib/functions/general/repo.sh | 1 + lib/functions/host/basic-deps.sh | 1 + lib/functions/host/host-utils.sh | 1 + lib/functions/host/prepare-host.sh | 1 + lib/functions/image/fingerprint.sh | 1 + lib/functions/image/initrd.sh | 1 + lib/functions/image/loop.sh | 1 + lib/functions/image/partitioning.sh | 1 + lib/functions/image/rootfs-to-image.sh | 1 + lib/functions/logging/logging.sh | 1 + lib/functions/logging/runners.sh | 1 + lib/functions/logging/traps.sh | 1 + lib/functions/main/build-tasks.sh | 1 + lib/functions/main/config-prepare.sh | 1 + lib/functions/main/rootfs-image.sh | 1 + lib/functions/rootfs/apt-install.sh | 1 + lib/functions/rootfs/apt-sources.sh | 1 + lib/functions/rootfs/boot_logo.sh | 1 + lib/functions/rootfs/create-cache.sh | 1 + lib/functions/rootfs/customize.sh | 1 + lib/functions/rootfs/distro-agnostic.sh | 1 + lib/functions/rootfs/distro-specific.sh | 1 + lib/functions/rootfs/post-tweaks.sh | 1 + lib/functions/rootfs/rootfs-desktop.sh | 1 + lib/import-functions.sh | 2 +- 58 files changed, 58 insertions(+), 1 deletion(-) diff --git a/extensions/detect-unused-extensions.sh b/extensions/detect-unused-extensions.sh index 9d0e7efb87d0..73989925e493 100644 --- a/extensions/detect-unused-extensions.sh +++ b/extensions/detect-unused-extensions.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## Configuration export LOG_ALL_HOOK_TRACES=no # Should we log all hook function traces to stdout? (no, or level: wrn info) diff --git a/extensions/flash-kernel.sh b/extensions/flash-kernel.sh index 510e0c0ad5e9..283a38bd7c33 100644 --- a/extensions/flash-kernel.sh +++ b/extensions/flash-kernel.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # This runs *after* user_config. Don't change anything not coming from other variables or meant to be configured by the user. function extension_prepare_config__prepare_flash_kernel() { # Configuration defaults, or lack thereof. diff --git a/extensions/gen-sample-extension-docs.sh b/extensions/gen-sample-extension-docs.sh index 6a88baa40dd4..7c0851c12db4 100644 --- a/extensions/gen-sample-extension-docs.sh +++ b/extensions/gen-sample-extension-docs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## Hooks function extension_metadata_ready__499_display_docs_generation_start_info() { display_alert "Generating hook documentation and sample extension" diff --git a/extensions/grub-riscv64.sh b/extensions/grub-riscv64.sh index 4678a416c83a..87f51f4e4996 100644 --- a/extensions/grub-riscv64.sh +++ b/extensions/grub-riscv64.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # This runs *after* user_config. Don't change anything not coming from other variables or meant to be configured by the user. function extension_prepare_config__prepare_grub-riscv64() { display_alert "Prepare config" "${EXTENSION}" "info" diff --git a/extensions/grub-sbc-media.sh b/extensions/grub-sbc-media.sh index eefbf6bf058b..6a4dc9247257 100644 --- a/extensions/grub-sbc-media.sh +++ b/extensions/grub-sbc-media.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # This runs *after* user_config. Don't change anything not coming from other variables or meant to be configured by the user. function extension_prepare_config__prepare_grub-sbc-media() { display_alert "Prepare config" "${EXTENSION}" "info" diff --git a/extensions/grub.sh b/extensions/grub.sh index 777e4e77567f..d70c5ea5290a 100644 --- a/extensions/grub.sh +++ b/extensions/grub.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # This runs *after* user_config. Don't change anything not coming from other variables or meant to be configured by the user. function extension_prepare_config__prepare_flash_kernel() { # Extension configuration defaults. diff --git a/extensions/marvell-tools.sh b/extensions/marvell-tools.sh index 95f106b9fa1d..9a3d96e532ed 100644 --- a/extensions/marvell-tools.sh +++ b/extensions/marvell-tools.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function fetch_sources_tools__marvell_tools() { fetch_from_repo "https://github.com/MarvellEmbeddedProcessors/A3700-utils-marvell" "marvell-tools" "branch:master" fetch_from_repo "https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git" "marvell-ddr" "branch:master" diff --git a/extensions/nvidia.sh b/extensions/nvidia.sh index abee53f8f24a..77734bc60172 100644 --- a/extensions/nvidia.sh +++ b/extensions/nvidia.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function pre_install_kernel_debs__build_nvidia_kernel_module() { export INSTALL_HEADERS="yes" diff --git a/extensions/rkbin-tools.sh b/extensions/rkbin-tools.sh index 5617857cb139..96bc37f3bcb5 100644 --- a/extensions/rkbin-tools.sh +++ b/extensions/rkbin-tools.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function fetch_sources_tools__rkbin_tools() { fetch_from_repo "https://github.com/armbian/rkbin" "rkbin-tools" "branch:master" } diff --git a/extensions/sunxi-tools.sh b/extensions/sunxi-tools.sh index 5b699ac14fc3..0d33eb0ff820 100644 --- a/extensions/sunxi-tools.sh +++ b/extensions/sunxi-tools.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function fetch_sources_tools__sunxi_tools() { fetch_from_repo "https://github.com/linux-sunxi/sunxi-tools" "sunxi-tools" "branch:master" } diff --git a/lib/extensions.sh b/lib/extensions.sh index 4c93a643a3e3..e3bbfac5224e 100644 --- a/lib/extensions.sh +++ b/lib/extensions.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # global variables managing the state of the extension manager. treat as private. declare -A extension_function_info # maps a function name to a string with KEY=VALUEs information about the defining extension declare -i initialize_extension_manager_counter=0 # how many times has the extension manager initialized? diff --git a/lib/functions/bsp/bsp-cli.sh b/lib/functions/bsp/bsp-cli.sh index 504f3efd05e0..cb51d9e6efc8 100644 --- a/lib/functions/bsp/bsp-cli.sh +++ b/lib/functions/bsp/bsp-cli.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash create_board_package() { display_alert "Creating board support package for CLI" "$CHOSEN_ROOTFS" "info" diff --git a/lib/functions/bsp/bsp-desktop.sh b/lib/functions/bsp/bsp-desktop.sh index 60c7227615a7..4f318b396dbd 100644 --- a/lib/functions/bsp/bsp-desktop.sh +++ b/lib/functions/bsp/bsp-desktop.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash create_desktop_package() { echo "Showing PACKAGE_LIST_DESKTOP before postprocessing" >> "${DEST}"/${LOG_SUBPATH}/output.log diff --git a/lib/functions/bsp/utils-bsp.sh b/lib/functions/bsp/utils-bsp.sh index 42215128a6de..30422475d15b 100644 --- a/lib/functions/bsp/utils-bsp.sh +++ b/lib/functions/bsp/utils-bsp.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # copy_all_packages_files_for to package # copy_all_packages_files_for() { diff --git a/lib/functions/cli/cli-entrypoint.sh b/lib/functions/cli/cli-entrypoint.sh index 2d86c1cc4cf3..e60dee398665 100644 --- a/lib/functions/cli/cli-entrypoint.sh +++ b/lib/functions/cli/cli-entrypoint.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function cli_entrypoint() { if [[ "${ARMBIAN_ENABLE_CALL_TRACING}" == "yes" ]]; then set -T # inherit return/debug traps diff --git a/lib/functions/cli/utils-cli.sh b/lib/functions/cli/utils-cli.sh index a1e9b176e3e3..909b420e19dc 100644 --- a/lib/functions/cli/utils-cli.sh +++ b/lib/functions/cli/utils-cli.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Add the variables needed at the beginning of the path check_args() { diff --git a/lib/functions/compilation/atf.sh b/lib/functions/compilation/atf.sh index 7d6f96ac9f54..56d8bfd3c495 100644 --- a/lib/functions/compilation/atf.sh +++ b/lib/functions/compilation/atf.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash compile_atf() { if [[ $CLEAN_LEVEL == *make* ]]; then display_alert "Cleaning" "$ATFSOURCEDIR" "info" diff --git a/lib/functions/compilation/debs.sh b/lib/functions/compilation/debs.sh index dad5cbf59171..7128b92ec6b2 100644 --- a/lib/functions/compilation/debs.sh +++ b/lib/functions/compilation/debs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash compile_firmware() { display_alert "Merging and packaging linux firmware" "@host" "info" diff --git a/lib/functions/compilation/kernel-debs.sh b/lib/functions/compilation/kernel-debs.sh index a072fd355acc..be10a6d6e560 100644 --- a/lib/functions/compilation/kernel-debs.sh +++ b/lib/functions/compilation/kernel-debs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash create_linux-source_package() { ts=$(date +%s) local sources_pkg_dir tmp_src_dir diff --git a/lib/functions/compilation/kernel.sh b/lib/functions/compilation/kernel.sh index cb630bb5e542..a893f66204f1 100644 --- a/lib/functions/compilation/kernel.sh +++ b/lib/functions/compilation/kernel.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash compile_kernel() { if [[ $CLEAN_LEVEL == *make* ]]; then display_alert "Cleaning" "$LINUXSOURCEDIR" "info" diff --git a/lib/functions/compilation/patch/kernel-bootsplash-and-drivers.sh b/lib/functions/compilation/patch/kernel-bootsplash-and-drivers.sh index eaf3fd0801ce..39d93b92202b 100644 --- a/lib/functions/compilation/patch/kernel-bootsplash-and-drivers.sh +++ b/lib/functions/compilation/patch/kernel-bootsplash-and-drivers.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash compilation_prepare() { # Packaging patch for modern kernels should be one for all. diff --git a/lib/functions/compilation/patch/patching.sh b/lib/functions/compilation/patch/patching.sh index cfb02dc254bc..dd0bbe5aab07 100644 --- a/lib/functions/compilation/patch/patching.sh +++ b/lib/functions/compilation/patch/patching.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # advanced_patch # # parameters: diff --git a/lib/functions/compilation/uboot.sh b/lib/functions/compilation/uboot.sh index 0e76c5098b79..9073c87aa453 100644 --- a/lib/functions/compilation/uboot.sh +++ b/lib/functions/compilation/uboot.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash compile_uboot() { # not optimal, but extra cleaning before overlayfs_wrapper should keep sources directory clean if [[ $CLEAN_LEVEL == *make* ]]; then diff --git a/lib/functions/compilation/utils-compilation.sh b/lib/functions/compilation/utils-compilation.sh index 05f517ec3bd7..9e649041c7a0 100644 --- a/lib/functions/compilation/utils-compilation.sh +++ b/lib/functions/compilation/utils-compilation.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash grab_version() { local ver=() ver[0]=$(grep "^VERSION" "${1}"/Makefile | head -1 | awk '{print $(NF)}' | grep -oE '^[[:digit:]]+') diff --git a/lib/functions/configuration/aggregation.sh b/lib/functions/configuration/aggregation.sh index 1acd8591f4e8..1d657ffd7430 100644 --- a/lib/functions/configuration/aggregation.sh +++ b/lib/functions/configuration/aggregation.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Expected variables # - aggregated_content # - potential_paths diff --git a/lib/functions/configuration/config-desktop.sh b/lib/functions/configuration/config-desktop.sh index 070e0738e807..dce8913437b2 100644 --- a/lib/functions/configuration/config-desktop.sh +++ b/lib/functions/configuration/config-desktop.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash desktop_element_available_for_arch() { local desktop_element_path="${1}" local targeted_arch="${2}" diff --git a/lib/functions/configuration/interactive.sh b/lib/functions/configuration/interactive.sh index 146b68f6d155..dd4f718eea77 100644 --- a/lib/functions/configuration/interactive.sh +++ b/lib/functions/configuration/interactive.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function interactive_config_prepare_terminal() { if [[ -z $ROOT_FS_CREATE_ONLY ]]; then # override stty size diff --git a/lib/functions/configuration/menu.sh b/lib/functions/configuration/menu.sh index d4aeeedf90b1..a0dff7fe19db 100644 --- a/lib/functions/configuration/menu.sh +++ b/lib/functions/configuration/menu.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Myy : Menu configuration for choosing desktop configurations show_menu() { provided_title=$1 diff --git a/lib/functions/extras/buildpkg.sh b/lib/functions/extras/buildpkg.sh index 4b286ecdd634..126e4c6a624e 100644 --- a/lib/functions/extras/buildpkg.sh +++ b/lib/functions/extras/buildpkg.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # create_chroot # create_chroot() { diff --git a/lib/functions/extras/installpkg.sh b/lib/functions/extras/installpkg.sh index a4e6046464eb..60f2132bd58f 100644 --- a/lib/functions/extras/installpkg.sh +++ b/lib/functions/extras/installpkg.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Installing debian packages or package files in the armbian build system. # The function accepts four optional parameters: # autoupdate - If the installation list is not empty then update first. diff --git a/lib/functions/general/chroot-helpers.sh b/lib/functions/general/chroot-helpers.sh index 1175031421d1..c4a7c5060def 100644 --- a/lib/functions/general/chroot-helpers.sh +++ b/lib/functions/general/chroot-helpers.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # mount_chroot # # helper to reduce code duplication diff --git a/lib/functions/general/downloads.sh b/lib/functions/general/downloads.sh index 15d30837f5c0..6ee459ca3bdd 100644 --- a/lib/functions/general/downloads.sh +++ b/lib/functions/general/downloads.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash function get_urls() { local catalog=$1 local filename=$2 diff --git a/lib/functions/general/git.sh b/lib/functions/general/git.sh index 0a75a0f114c4..9ad3eca77be2 100644 --- a/lib/functions/general/git.sh +++ b/lib/functions/general/git.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # # This function retries Git operations to avoid failure in case remote is borked # If the git team needs to call a remote server, use this function. diff --git a/lib/functions/general/repo.sh b/lib/functions/general/repo.sh index 987e0557d1bc..1fcd1cdf4ad9 100644 --- a/lib/functions/general/repo.sh +++ b/lib/functions/general/repo.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash adding_packages() { # add deb files to repository if they are not already there diff --git a/lib/functions/host/basic-deps.sh b/lib/functions/host/basic-deps.sh index 81155a125b10..4b19b4eb6f37 100644 --- a/lib/functions/host/basic-deps.sh +++ b/lib/functions/host/basic-deps.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # prepare_host_basic # # * installs only basic packages diff --git a/lib/functions/host/host-utils.sh b/lib/functions/host/host-utils.sh index 8f8c49484138..fac8d64853b4 100644 --- a/lib/functions/host/host-utils.sh +++ b/lib/functions/host/host-utils.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # wait_for_package_manager # # * installation will break if we try to install when package manager is running diff --git a/lib/functions/host/prepare-host.sh b/lib/functions/host/prepare-host.sh index f10e4ce86631..df31f9c0142c 100644 --- a/lib/functions/host/prepare-host.sh +++ b/lib/functions/host/prepare-host.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # prepare_host # # * checks and installs necessary packages diff --git a/lib/functions/image/fingerprint.sh b/lib/functions/image/fingerprint.sh index 8da6b77817d1..baddd27a40fc 100644 --- a/lib/functions/image/fingerprint.sh +++ b/lib/functions/image/fingerprint.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #-------------------------------------------------------------------------------------------------------------------------------- # fingerprint_image [image_filename] # Saving build summary to the image diff --git a/lib/functions/image/initrd.sh b/lib/functions/image/initrd.sh index 0fbf3033bdba..35a61b21d896 100644 --- a/lib/functions/image/initrd.sh +++ b/lib/functions/image/initrd.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # update_initramfs # # this should be invoked as late as possible for any modifications by diff --git a/lib/functions/image/loop.sh b/lib/functions/image/loop.sh index 913f9f429f28..8fd8e464ac86 100644 --- a/lib/functions/image/loop.sh +++ b/lib/functions/image/loop.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # check_loop_device # check_loop_device() { diff --git a/lib/functions/image/partitioning.sh b/lib/functions/image/partitioning.sh index bb1828894ed5..a6df236736b9 100644 --- a/lib/functions/image/partitioning.sh +++ b/lib/functions/image/partitioning.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # prepare_partitions # # creates image file, partitions and fs diff --git a/lib/functions/image/rootfs-to-image.sh b/lib/functions/image/rootfs-to-image.sh index b592b2fe6ce2..5a2c4365e798 100644 --- a/lib/functions/image/rootfs-to-image.sh +++ b/lib/functions/image/rootfs-to-image.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # create_image # # finishes creation of image from cached rootfs diff --git a/lib/functions/logging/logging.sh b/lib/functions/logging/logging.sh index 38ee7006146b..a2eb14b7be43 100644 --- a/lib/functions/logging/logging.sh +++ b/lib/functions/logging/logging.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #-------------------------------------------------------------------------------------------------------------------------------- # Let's have unique way of displaying alerts #-------------------------------------------------------------------------------------------------------------------------------- diff --git a/lib/functions/logging/runners.sh b/lib/functions/logging/runners.sh index bcd0b793a092..2a7053699e7f 100644 --- a/lib/functions/logging/runners.sh +++ b/lib/functions/logging/runners.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash run_on_sdcard() { # Lack of quotes allows for redirections and pipes easily. diff --git a/lib/functions/logging/traps.sh b/lib/functions/logging/traps.sh index 9d3fd5b3b92d..be27e1452b0a 100644 --- a/lib/functions/logging/traps.sh +++ b/lib/functions/logging/traps.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # exit_with_error # # a way to terminate build process diff --git a/lib/functions/main/build-tasks.sh b/lib/functions/main/build-tasks.sh index 5a4a33e12a0d..6910ab0090bb 100644 --- a/lib/functions/main/build-tasks.sh +++ b/lib/functions/main/build-tasks.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ############################################################################### # # build_task_is_enabled() diff --git a/lib/functions/main/config-prepare.sh b/lib/functions/main/config-prepare.sh index 5553710cf6ba..4912f6974abf 100644 --- a/lib/functions/main/config-prepare.sh +++ b/lib/functions/main/config-prepare.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash DISTRIBUTIONS_DESC_DIR="config/distributions" function prepare_and_config_main_build_single() { diff --git a/lib/functions/main/rootfs-image.sh b/lib/functions/main/rootfs-image.sh index 9847350cefc9..8ce987a0185b 100644 --- a/lib/functions/main/rootfs-image.sh +++ b/lib/functions/main/rootfs-image.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # unmount_on_exit # unmount_on_exit() { diff --git a/lib/functions/rootfs/apt-install.sh b/lib/functions/rootfs/apt-install.sh index 79bf82004163..74d15ad66bc2 100644 --- a/lib/functions/rootfs/apt-install.sh +++ b/lib/functions/rootfs/apt-install.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash install_deb_chroot() { local package=$1 diff --git a/lib/functions/rootfs/apt-sources.sh b/lib/functions/rootfs/apt-sources.sh index 2199ce881444..a6a21a631456 100644 --- a/lib/functions/rootfs/apt-sources.sh +++ b/lib/functions/rootfs/apt-sources.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash install_ppa_prerequisites() { # Myy : So... The whole idea is that, a good bunch of external sources diff --git a/lib/functions/rootfs/boot_logo.sh b/lib/functions/rootfs/boot_logo.sh index f206b041af1a..e3ab0d49f902 100644 --- a/lib/functions/rootfs/boot_logo.sh +++ b/lib/functions/rootfs/boot_logo.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #-------------------------------------------------------------------------------------------------------------------------------- # Create kernel boot logo from packages/blobs/splash/logo.png and packages/blobs/splash/spinner.gif (animated) # and place to the file /lib/firmware/bootsplash diff --git a/lib/functions/rootfs/create-cache.sh b/lib/functions/rootfs/create-cache.sh index 6a1f89485034..199dbd9cadbc 100644 --- a/lib/functions/rootfs/create-cache.sh +++ b/lib/functions/rootfs/create-cache.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # get_package_list_hash # # returns md5 hash for current package list and rootfs cache version diff --git a/lib/functions/rootfs/customize.sh b/lib/functions/rootfs/customize.sh index fd06596e5b32..3c526d301262 100644 --- a/lib/functions/rootfs/customize.sh +++ b/lib/functions/rootfs/customize.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash customize_image() { # for users that need to prepare files at host diff --git a/lib/functions/rootfs/distro-agnostic.sh b/lib/functions/rootfs/distro-agnostic.sh index ce87c78921cd..bf7ea3762649 100644 --- a/lib/functions/rootfs/distro-agnostic.sh +++ b/lib/functions/rootfs/distro-agnostic.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash install_common() { display_alert "Applying common tweaks" "" "info" diff --git a/lib/functions/rootfs/distro-specific.sh b/lib/functions/rootfs/distro-specific.sh index ea0fb9b8b9b7..040492a2ede1 100644 --- a/lib/functions/rootfs/distro-specific.sh +++ b/lib/functions/rootfs/distro-specific.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash install_distribution_specific() { display_alert "Applying distribution specific tweaks for" "$RELEASE" "info" diff --git a/lib/functions/rootfs/post-tweaks.sh b/lib/functions/rootfs/post-tweaks.sh index c7cb23ea9bf3..b3860ae11fc0 100644 --- a/lib/functions/rootfs/post-tweaks.sh +++ b/lib/functions/rootfs/post-tweaks.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash post_debootstrap_tweaks() { # remove service start blockers and QEMU binary diff --git a/lib/functions/rootfs/rootfs-desktop.sh b/lib/functions/rootfs/rootfs-desktop.sh index a7fcf85cd448..597bbc96a291 100644 --- a/lib/functions/rootfs/rootfs-desktop.sh +++ b/lib/functions/rootfs/rootfs-desktop.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash desktop_postinstall() { # disable display manager for the first run diff --git a/lib/import-functions.sh b/lib/import-functions.sh index f8fdc762706a..933ca186b158 100644 --- a/lib/import-functions.sh +++ b/lib/import-functions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while read -r file; do # shellcheck source=/dev/null