Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3

18 bytes removed, 13:08, 29 January 2021
m
Part 3: Generating Sofware Package Information with Shell Scripts: - switching to making sure whoami is root, not in root's home dir.
&#35; Date: *** CURRENT DATE ***<br>
<br>
if [ $PWD (whoami) != "/root/bin" ] # only runs if in /root/bin directory<br>
then<br>&nbsp;echo "You must be logged in as root." >&2<br>
&nbsp;exit 1<br>
932
edits