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

simplify

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