Commit bf02537d authored by Aral Balkan's avatar Aral Balkan

Added indentOutput function to uninstall script.

parent d6020738
Pipeline #400 skipped
...@@ -23,7 +23,7 @@ uninstall(){ ...@@ -23,7 +23,7 @@ uninstall(){
echo " · Deleting all components." echo " · Deleting all components."
git clean -ffXd indentOutput "git clean -ffXd"
echo " · Deleting all data and content." echo " · Deleting all data and content."
...@@ -33,6 +33,14 @@ uninstall(){ ...@@ -33,6 +33,14 @@ uninstall(){
echo " To re-install a fresh copy of Better, run the ./install script.\n" echo " To re-install a fresh copy of Better, run the ./install script.\n"
} }
# Runs the passed command, formatting the output with the passed indentation (default: 4 spaces)
indentOutput(){
commandToRun=$1
indentation=${2:-' '}
script -q /dev/null $1 | LC_ALL=C sed "s/^/${indentation} · /g"
}
secondConfirmation(){ secondConfirmation(){
echo "\n Are you really, really sure (last chance)?\n" echo "\n Are you really, really sure (last chance)?\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment