Changeset - cb413875da2f
[Approved]
0 1 0
Dennis Fink - 23 months ago 2022-06-08 22:17:24
dennis.fink@c3l.lu
Use shellvariable EUID to check if we are root
1 file changed with 1 insertions and 1 deletions:
2 comments (0 inline, 2 general)
flashEMMC.sh
Show inline comments
 
@@ -7,7 +7,7 @@ HASH_LINK=https://de3.mirror.archlinuxarm.org/os/
 

	
 

	
 
checkRoot() {
 
	[ `id -u` -eq 0 ] || { echo "Run script (as root) or (with sudo)"; exit 1; }
 
	[[ "$EUID" -eq 0 ]] || { echo "Run script (as root) or (with sudo)"; exit 1; }
 
}
 

	
 
diskInfo() {
Dennis Fink (metalgamer) 1 year and 11 months ago comment on pull request "Fixed some shellcheck warnings"

Status change: Under review

x 1 year and 11 months ago comment on pull request "Fixed some shellcheck warnings"

Status change: Approved

Answer is "ok" (via Matrix chat)
2 comments (0 inline, 2 general)