932
edits
Changes
m
→Part 3: Using Shell Scripts for VM Backup & Management: - switching to using sudo over being root.
if [ $PWD (whoami) != "/root" ] # only runs if in root's home directory<br>then<br> echo "You must be located in /root" >&2<br>
exit 1<br>
fi