repo-cloner/old/dockerbin/wizzard
Václav Valíček 1fef7bc404
New behavior, new tests, added wizzard and processor
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-08-07 21:44:31 +02:00

19 lines
336 B
Bash
Executable File

#!/bin/bash
echo "First run - initialization of repos..."
if ! env BASE=$root run-checker
then
echo -n "First run failed - remove directory? [Y/n]"
read read_cleanup
[ -n "$read_cleanup" ] || read_cleanup=Y
if [[ "$read_cleanup" =~ ^[Yy]$ ]]
then
rm -Rf $root
fi
else
echo "Setup has finished!"
touch $root/.enabled
fi