aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-10 03:09:03 +0300
committerCem Keylan <cem@ckyln.com>2019-12-10 03:09:03 +0300
commit97c3dbf644cf44638d70d5f95068d60f48ee1cfb (patch)
treed459452b4ad7ac1a4c69d99534e66494715a9e84
parent2ac92f9ab14f8ae3d49b6d4f5c6820e501a120b9 (diff)
downloadmkrootfs-97c3dbf644cf44638d70d5f95068d60f48ee1cfb.tar.gz
get basedir in the beginning
-rwxr-xr-xmkrootfs.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkrootfs.sh b/mkrootfs.sh
index 19fa8e0..7bd334a 100755
--- a/mkrootfs.sh
+++ b/mkrootfs.sh
@@ -9,6 +9,7 @@ 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"
# If there is no config file, we copy config.def