Added Debian check to util/build-debian-package.sh
This commit is contained in:
@@ -6,6 +6,14 @@
|
||||
## ./util/build-debian-package.sh # build amd64 package
|
||||
## ./util/build-debian-package.sh aarch64 # build package for specific archiecture
|
||||
|
||||
# Check if running on Debian and exit if it is not
|
||||
if grep -qi "Debian" /etc/os-release; then
|
||||
:
|
||||
else
|
||||
echo -e "NOT RUNNING THIS SCRIPT ON DEBIAN! Try again with Debian." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ARCH=${1:-amd64}
|
||||
echo "Let There Be Hush Debian Packages"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user