Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Better
Better
Commits
4b196aba
Unverified
Commit
4b196aba
authored
Aug 23, 2018
by
Aral Balkan
Browse files
Update uninstall script to run on Linux
(The indent output function was not working.)
parent
488bba45
Changes
1
Hide whitespace changes
Inline
Side-by-side
uninstall
View file @
4b196aba
...
...
@@ -23,7 +23,7 @@ uninstall(){
echo
-e
" · Deleting all components.
\n
"
indentOutput
"
git clean -ffXd
"
git clean
-ffXd
| indent
echo
-e
"
\n
· Deleting all data and content."
...
...
@@ -33,13 +33,9 @@ uninstall(){
echo
-e
" 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"
}
# Indents output by four spaces. Pipe to it.
# Courtesy https://stackoverflow.com/a/29779745
indent
()
{
sed
's/^/ /'
;
}
secondConfirmation
(){
echo
-e
"
\n
Are you really, really sure (last chance)?
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment