repo-cloner/old/dockerbin/wizzard

19 lines
336 B
Plaintext
Raw Normal View History

2018-02-09 11:49:16 +01:00
#!/bin/bash
echo "First run - initialization of repos..."
2018-02-23 10:38:47 +01:00
if ! env BASE=$root run-checker
2018-02-09 11:49:16 +01:00
then
2018-02-23 10:38:47 +01:00
echo -n "First run failed - remove directory? [Y/n]"
2018-02-09 11:49:16 +01:00
read read_cleanup
[ -n "$read_cleanup" ] || read_cleanup=Y
if [[ "$read_cleanup" =~ ^[Yy]$ ]]
then
2018-02-23 10:38:47 +01:00
rm -Rf $root
2018-02-09 11:49:16 +01:00
fi
else
2018-02-09 11:49:16 +01:00
echo "Setup has finished!"
2018-02-23 10:38:47 +01:00
touch $root/.enabled
2018-02-09 11:49:16 +01:00
fi