diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 89c1ca04..82fa959f 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -1,4 +1,4 @@ -name: Linting +name: ShellCheck on: [pull_request] jobs: shellcheck: diff --git a/scripts/setup_non_rpi.sh b/scripts/setup_non_rpi.sh index a9d4152f..20f82018 100755 --- a/scripts/setup_non_rpi.sh +++ b/scripts/setup_non_rpi.sh @@ -2,14 +2,14 @@ # Check if the script is running on a non-Raspberry Pi device if ! is_raspberry_pi; then - echo "$(whoami) ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99_$(whoami)_nopasswd >/dev/null - sudo chmod 0440 /etc/sudoers.d/99_$(whoami)_nopasswd + echo "$(whoami) ALL=(ALL) NOPASSWD: ALL" | sudo tee "/etc/sudoers.d/99_$(whoami)_nopasswd" >/dev/null + sudo chmod 0440 "/etc/sudoers.d/99_$(whoami)_nopasswd" if ! getent group gpio >/dev/null; then echo "Creating gpio group" sudo groupadd gpio fi echo "Setting up GPIOs for non Raspberry Pi devices" - sudo usermod -aG gpio $USER + sudo usermod -aG gpio "$USER" # Create the setup_gpio_permissions.sh script sudo cp .scripts/setup_gpio_permissions.sh /usr/local/bin/setup_gpio_permissions.sh