From b8b0ca107adf18beddc372c9a394c96c3a974cf9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 16 Jan 2009 14:44:59 +0100 Subject: [PATCH] [BUGFIX] cd must be in subshell, otherwise breaks later Due to wrong WD Signed-off-by: Nico Schottelius --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index cbef116..f3c3e91 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -398,7 +398,7 @@ while [ "${i}" -lt "${no_sources}" ]; do # # check for existence / use real name # - pcmd cd "$ddir" || _exit_err "Cannot change to ${ddir}. Skipping." + ( pcmd cd "$ddir" ) || _exit_err "Cannot change to ${ddir}. Skipping." #