diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-08 14:56:11 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-08 14:56:11 -0500 |
| commit | f72dee8a4a2b29a6571939e58303ffc6894bc10d (patch) | |
| tree | 1fb6e0f770085c9b65fa87a151c070ca59686701 /user_scripts/applications.sh | |
| parent | c01c393344a71dc0bbba9a09dc9caeabeef398dc (diff) | |
adding root and user checks
Diffstat (limited to 'user_scripts/applications.sh')
| -rwxr-xr-x | user_scripts/applications.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/user_scripts/applications.sh b/user_scripts/applications.sh index 48d1cf0..a73ea1e 100755 --- a/user_scripts/applications.sh +++ b/user_scripts/applications.sh @@ -1,7 +1,13 @@ #!/bin/sh # Craig Jennings <c@cjennings.net> # installs commonly used applications -# note sudo must be configured + +# ensure user +if [ $(id -u) -eq 0 ] +then + echo "Must run as user. Exiting." + exit +fi #### Emacs and Dependencies sudo pkg install -y emacs # everything is ultimately to run or assist Emacs |
