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

View file

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