diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-11-06 11:52:28 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-11-06 11:52:28 -0400 |
| commit | 9dedd287dbdd7288f1b36e52b655f4f3ce030c4b (patch) | |
| tree | 5f8bb3353ee27cdec401683dc6d05a26c6fa76c3 /build.sh | |
| parent | 915627bdc31d555cd6edbcffc1119cc5778035d3 (diff) | |
| download | alee-boot-utility-9dedd287dbdd7288f1b36e52b655f4f3ce030c4b.tar.gz alee-boot-utility-9dedd287dbdd7288f1b36e52b655f4f3ce030c4b.tar.bz2 alee-boot-utility-9dedd287dbdd7288f1b36e52b655f4f3ce030c4b.zip | |
Added requirement to run script as root
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,9 +1,17 @@ #!/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Run this script as root to continue" + exit +fi echo "Building Alee Boot Utility" if [ -f "/usr/bin/mkarchiso" ]; then - if [ -d "log" ]; then + if [ ! -d "log" ]; then mkdir log fi + if [ -d "work" ]; then + echo "Removing the work directory" + rm -rf work + fi mkarchiso -v . | tee log/aleebootutility-$(date +%Y.%m.%d-%H.%M.%S).log else echo "You must install the archiso package beforing continuing this process..." |
