From 66c52845b6811d85cdd70b2d659d974998a93c6d Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Wed, 29 Apr 2009 14:35:14 +0000 Subject: [PATCH] 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 --- src/usr/sbin/sbopkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 3756a0f..549645f 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -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() {