dir to directory
This commit is contained in:
parent
1da58278d9
commit
be339bf048
4
generate
4
generate
@ -36,7 +36,7 @@ create_tmpdir() {
|
|||||||
|
|
||||||
# remove tmpdir
|
# remove tmpdir
|
||||||
remove_tmpdir() {
|
remove_tmpdir() {
|
||||||
msg info "removing working dir"
|
msg info "removing working directory"
|
||||||
rm -rf "$tmpdir"
|
rm -rf "$tmpdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ remove_tmpdir() {
|
|||||||
check_currentdir() {
|
check_currentdir() {
|
||||||
script_dir=$(dirname "$0")
|
script_dir=$(dirname "$0")
|
||||||
[ "$PWD" = "$script_dir" ] || {
|
[ "$PWD" = "$script_dir" ] || {
|
||||||
msg info "changing directory to script dir"
|
msg info "changing current directory to script directory"
|
||||||
cd "$script_dir" || msg panic "failed to change directory"
|
cd "$script_dir" || msg panic "failed to change directory"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user