added sudo check, cleaned up comments
This commit is contained in:
6
debian/debian-update-sources.sh
vendored
6
debian/debian-update-sources.sh
vendored
@@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
# update bookworm to new debian.sources file
|
||||
if [[ -f /etc/apt/sources.list.d/debian.sources ]]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user