forked from ungleich-public/ccollect
Fix possible problem due to not checked success of cd
This commit is contained in:
parent
be9d93c997
commit
9c2b38bd17
1 changed files with 2 additions and 3 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue