diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa
index 186947d5afd344da366bd9848bf60c923afd40c9..a4f418e1f05f3dd23e1dbb734bc1ab4445841bef 100755 (executable)
--- a/gosa-core/update-gosa
+++ b/gosa-core/update-gosa
static $result= array();
if ($base_dir == ""){
- $base_dir= getcwd();
+ if ($folder == "."){
+ $base_dir= getcwd();
+ } else {
+ $base_dir= $folder;
+ }
}
$currdir=getcwd();