Skip to content
Snippets Groups Projects
Verified Commit 1eee23ce authored by orestis.malaspin's avatar orestis.malaspin
Browse files

simplify

parent 8996597f
Branches
No related tags found
No related merge requests found
......@@ -6,8 +6,12 @@
{ \unalias command; \unset -f command; } >/dev/null 2>&1
tdir=''
gitedu_release_url="https://gitedu.hesge.ch/dojo_project/projects/ui/dojocli/-/releases/Latest"
cleanup() {
cleanup_success() {
printf "The dojo is installed in %s\nMake sure %s is in your path\n" "$dest" "$dest"
cleanup
}
cleanup() {
[ -n "$tdir" ] && {
printf "Cleaning temporary files in %s\n" "$tdir"
command rm -rf "$tdir"
......@@ -182,7 +186,7 @@ main() {
else
linux_install
fi
cleanup
cleanup_success
exit 0
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment