Properly quote $CWD.

$CWD stores the directory the user started sbopkg from.
We cannot make assumptions about it not containing spaces,
so proper quoting is needed.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-04-29 14:35:14 +00:00
parent 42d33db44b
commit 66c52845b6

View file

@ -2933,7 +2933,7 @@ check_for_latest() {
if [[ $SBOPKGUP ]]; then
cd $OUTPUT
wget $WGETFLAGS $NEWDLPKG
cd $CWD
cd "$CWD"
crunch_fmt \
"######################################################\
\nDownload complete. The downloaded file is located at:\
@ -3041,7 +3041,7 @@ cleanup() {
rm -f $PIDFILE
# Back to the directory the user started sbopkg in
cd $CWD
cd "$CWD"
}
control_c() {