Skip to content

Commit 8dee9da

Browse files
committed
xpadneo, installer: Delay set -e to not silently ignore errors
If `set -e` is used before including the bash libs, error checking in those libs becomes silent: The script just exists without and further idea about the cause. See-also: #525 Signed-off-by: Kai Krakow <kai@kaishome.de>
1 parent 1c184a3 commit 8dee9da

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
set -e
4-
53
cd "$(dirname "$0")"
64
source "lib/options.sh"
75
source "lib/installer.sh"
86

7+
set -e
8+
99
if [[ ! -d /sys/devices/virtual/misc/uhid ]]; then
1010

1111
>&2 echo "WARNING: kernel uhid module not found, controller firmware 5.x will not be supported"

uninstall.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
set -e
4-
53
cd "$(dirname "$0")"
64
source "lib/options.sh"
75
source "lib/installer.sh"
86

7+
set -e
8+
99
echo "* unloading current driver module"
1010
modprobe -r hid_xpadneo || true
1111

update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
set -e
4-
53
cd "$(dirname "$0")"
64
source "lib/installer.sh"
75

6+
set -e
7+
88
LATEST=$(get_upstream_version_latest)
99

1010
reinstall() {

0 commit comments

Comments
 (0)