Fix possible problem due to not checked success of cd

This commit is contained in:
Nico Schottelius 2006-11-14 23:51:17 +01:00
parent be9d93c997
commit 9c2b38bd17
1 changed files with 2 additions and 3 deletions

View File

@ -103,7 +103,7 @@ while [ $i -le $# ]; do
VERBOSE=1
;;
-p|--parallel)
PARALLEL="1"
PARALLEL=1
;;
-h|--help)
usage
@ -154,8 +154,7 @@ if [ "$ALL" = 1 ]; then
# get entries from sources
#
cwd=$(pwd -P)
cd "$CSOURCES";
ls > "$TMP"
( cd "$CSOURCES" && ls > "$TMP" )
if [ "$?" -ne 0 ]; then
echo "Listing of sources failed. Aborting."