Skip to content
Snippets Groups Projects
Verified Commit 0c162008 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

better bootstrap.sh

parent d135fde6
No related branches found
No related tags found
No related merge requests found
...@@ -17,31 +17,7 @@ downloadFile() { ...@@ -17,31 +17,7 @@ downloadFile() {
download "$reporaw/$1" "$1" download "$reporaw/$1" "$1"
} }
update() {
# TODO: versioning with tags
if $NOUPDATE
then
return 0
fi
local prevhash
prevhash="$(md5hash "$0")"
download "$reporaw/bootstrap.sh" "$0"
local newhash
newhash="$(md5hash "$0")"
if [[ "$prevhash" != "$newhash" ]]
then
exec bash "$0"
fi
}
update
downloadFile "requirements.python.txt" downloadFile "requirements.python.txt"
downloadFile "requirements.galaxy.yml"
if ! command -v virtualenv &>/dev/null if ! command -v virtualenv &>/dev/null
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment