Skip to content

Commit

Permalink
now passes shellcheck -x
Browse files Browse the repository at this point in the history
  • Loading branch information
Derrekito committed Apr 23, 2024
1 parent 6f990db commit 7083331
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cac_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ PKG_FILENAME="cackey_0.7.5-1_amd64.deb"
CACKEY_URL="http://cackey.rkeene.org/download/0.7.5/$PKG_FILENAME"

# source common functions
# shellcheck source=sh/common.sh
source "$CUR_DIR"/sh/common.sh

# check if distribution is debian-based or arch
Expand All @@ -36,10 +37,12 @@ check_distro
if [[ $distro == "debian" ]]; then
# Source the Debian-specific helper script if Debian is detected
echo "Debian-based distribution detected."
# shellcheck source=sh/debian_helper.sh
source "$CUR_DIR"/sh/debian_helper.sh
elif [[ $distro == "arch" ]]; then
# Source the Arch-specific helper script if Arch Linux is detected
echo "Arch Linux detected."
# shellcheck source=sh/arch_helper.sh
source "$CUR_DIR"/sh/arch_helper.sh
else
echo "The current distribution is not supported by this script."
Expand Down

0 comments on commit 7083331

Please sign in to comment.