mirror of
https://github.com/kevin-leptons/lfs-auto.git
synced 2026-01-12 15:39:47 +00:00
12 lines
284 B
Bash
Executable File
12 lines
284 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# using : valid script run as root
|
|
# it use in head of other script to warning that script must run as
|
|
# root
|
|
# author : kevin.leptons@gmail.com
|
|
|
|
if [ "$(id -u)" != "0" ]; then
|
|
echo "error: the script must be run as root"
|
|
exit 1
|
|
fi
|