aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-17 21:13:33 +0000
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-17 22:02:45 +0000
commit4efebb4d1deca52845f94f9cf8ff45f2e5fd8191 (patch)
tree74606af6259107d5cee040fb5020c798f7174647
parent13f2c64995621d3180b468c4d525eff1eb8c9993 (diff)
/mnt should be owned by root. Use sudo to create LFS target directory.
-rwxr-xr-xlfs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lfs.sh b/lfs.sh
index 9a8a4f1..ca57b74 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -51,7 +51,7 @@ printf "%b" "${GRN}Creating LFS directory at ${YLW}${LFS}${GRN}${RST}... "
if [[ -d "${LFS}" ]]; then
success "EXISTS"
else
- if ! mkdir "${LFS}" >/dev/null 2>&1; then
+ if ! sudo mkdir "${LFS}" >/dev/null 2>&1; then
fail "FAILED!"
exit 1
fi