19 lines
336 B
Bash
Executable File
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
|
|
|