aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/auto-build/auto-build-common9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common
index 10f39d96..9ae037a3 100644
--- a/scripts/auto-build/auto-build-common
+++ b/scripts/auto-build/auto-build-common
@@ -123,14 +123,13 @@ remove_dead_svn_externals()
clean_and_update_folder()
{
- folder=$1
- cd $folder
- if [ -d $folder/.git ]; then
+ cd "$1"
+ if [ -d ".git" ]; then
git=$(find_git)
$git reset --hard
$git clean -fdx
$git pull
- elif [ -d $folder/.svn ]; then
+ elif [ -d ".svn" ]; then
svn=$(find_svn)
$svn cleanup .
$svn revert -R .
@@ -141,7 +140,7 @@ clean_and_update_folder()
$svn update
$svn update -N .
else
- echo "no cleaning done, unknown SCM"
+ echo "no cleaning or updating done, unknown SCM"
fi
}