mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-09 09:53:47 +02:00
fail push
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l)
|
||||
# Make sure only root can run our script
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# Version: 0.1v #"
|
||||
|
||||
Reference in New Issue
Block a user