summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcomponents/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/init b/components/init
index 639ada82d..d9687063f 100755
--- a/components/init
+++ b/components/init
@@ -242,7 +242,7 @@ def main():
## Creating configuration directory
# stagefile
- if os.path.isdir('.build'):
+ if os.path.exists('.build/init'):
if verbose:
print('I: configuration directory already initialized - nothing to do')
@@ -514,6 +514,7 @@ def main():
## stagefile
os.makedirs('.build', exist_ok=True)
+ open('.build/init', 'w').close()
if __name__ == '__main__':