diff --git a/debian/openrgb.postinst b/debian/openrgb.postinst index 53f934c4..20ad8034 100644 --- a/debian/openrgb.postinst +++ b/debian/openrgb.postinst @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -e is not set should this step fail for whatever reason the installation is still valid set -u -o pipefail diff --git a/scripts/build-appimage.sh b/scripts/build-appimage.sh index fa8df24b..e27597e7 100755 --- a/scripts/build-appimage.sh +++ b/scripts/build-appimage.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #-----------------------------------------------------------------------# # OpenRGB AppImage Build Script # diff --git a/scripts/build-package-files.sh b/scripts/build-package-files.sh index 2915fead..99d20349 100755 --- a/scripts/build-package-files.sh +++ b/scripts/build-package-files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PROJECT_FILE="OpenRGB.pro" VERSION_PATTERN="__VERSION__" INFILE_SUFFIX=".in" diff --git a/scripts/build-udev-rules.sh b/scripts/build-udev-rules.sh index 09340751..ca3967d5 100755 --- a/scripts/build-udev-rules.sh +++ b/scripts/build-udev-rules.sh @@ -30,14 +30,14 @@ UDEV_HEADER+=${UDEV_LINE}'# Super I/O Access ASUS_TUF_DEVICES=('blue' 'flags' 'green' 'mode' 'red' 'set' 'speed') UDEV_HEADER+=${UDEV_LINE}'# ASUS TUF Laptops (faustus) #\n'${UDEV_LINE} for DEV in ${ASUS_TUF_DEVICES[@]}; do - UDEV_HEADER+='ACTION=="add", SUBSYSTEM=="platform", KERNEL=="faustus", RUN+="/bin/chmod a+w /sys/bus/platform/devices/%k/kbbl/kbbl_'${DEV}'"\n' + UDEV_HEADER+='ACTION=="add", SUBSYSTEM=="platform", KERNEL=="faustus", RUN+="/usr/bin/env chmod a+w /sys/bus/platform/devices/%k/kbbl/kbbl_'${DEV}'"\n' done # asus-wmi rules ASUS_WMI_DEVICES=('kbd_rgb_mode' 'brightness') UDEV_HEADER+='\n'${UDEV_LINE}'# ASUS TUF Laptops (asus-wmi) #\n'${UDEV_LINE} for DEV in ${ASUS_WMI_DEVICES[@]}; do - UDEV_HEADER+='ACTION=="add", SUBSYSTEM=="leds", KERNEL=="asus::kbd_backlight", RUN+="/bin/chmod a+w /sys%p/'${DEV}'"\n' + UDEV_HEADER+='ACTION=="add", SUBSYSTEM=="leds", KERNEL=="asus::kbd_backlight", RUN+="/usr/bin/env chmod a+w /sys%p/'${DEV}'"\n' done echo -e "$UDEV_HEADER" > "$UDEV_FILE"