feat: guard option in bash to prevent script from running after error
This commit is contained in:
parent
96c24ba956
commit
12cbefe3dd
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "error: you cannot perform this operation unless you are root."
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
# counts target = 8182 ~ 25cm
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
device="PNP0C50:0e 06CB:7E7E Touchpad"
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$EUID" -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user