aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-18 10:38:03 +0300
committerCem Keylan <cem@ckyln.com>2019-12-18 10:38:03 +0300
commitc3a8637dc14e7323fc71938b01a20c3d2c04aac5 (patch)
tree2a887a13faf07ba81941a63033620827624fb278
parent8129e7b5bbdcffaa7bab425f03e10f0dd6d157a4 (diff)
downloadmkrootfs-c3a8637dc14e7323fc71938b01a20c3d2c04aac5.tar.gz
move location where we get BASEDIR
-rwxr-xr-xmkrootfs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkrootfs.sh b/mkrootfs.sh
index bbb1bff..1474651 100755
--- a/mkrootfs.sh
+++ b/mkrootfs.sh
@@ -9,9 +9,11 @@ msg() { printf "\033[1;35m=>\033[m $1\\n" ;}
error() { msg "\033[1;31mERROR: \033[m$1" ;} >&2
die() { error "$1"; exit 1 ;}
ask() { printf "\033[1;33m== $1 ==\\n(y/N) "; read ans; case "$ans" in [Yy]*) return 0 ;; *) return 1 ;; esac ;}
-BASEDIR="$PWD"
+# Let's get current working directory
+BASEDIR="$PWD"
+
# If there is no config file, we copy config.def
# to config. After we make sure config file is
# in place, we source the contents