Fix for spaces in folder name (also tested with "./ ", just in case)
This commit is contained in:
parent
bf1fb52247
commit
cc5b00f0d0
1 changed files with 3 additions and 3 deletions
6
run.sh
6
run.sh
|
@ -38,10 +38,10 @@ main () {
|
|||
exit 0
|
||||
fi
|
||||
|
||||
chrdir="$(readlink -f "$1")"
|
||||
chrdir=$(readlink -f "$1")
|
||||
chrcmd="${2:-/bin/bash}"
|
||||
|
||||
trap "clean $chrdir" EXIT
|
||||
trap "clean \"$chrdir\"" EXIT
|
||||
|
||||
setup "$chrdir"
|
||||
runcmd "$chrdir" "$chrcmd"
|
||||
|
@ -54,4 +54,4 @@ sourced () {
|
|||
return 1
|
||||
}
|
||||
|
||||
sourced || main $@
|
||||
sourced || main "$@"
|
||||
|
|
Loading…
Reference in a new issue