diff --git a/astronaut b/astronaut index 37caa4a..7524e3e 100755 --- a/astronaut +++ b/astronaut @@ -2,10 +2,15 @@ set -e -# Paths +# Configuration dir_build="$PWD/build" dir_source="$PWD/source" dir_install="$PWD/install" +cmd_download="curl -#L -o {dst} {src}" +cmd_extract="tar xf {src}" +if [ -f /etc/astronaut.conf ]; then + . /etc/astronaut.conf +fi # Some printing functions show_help() { @@ -60,10 +65,6 @@ if [ ! -f "$satellite" ]; then exiterr "Can't find satellite file" fi -# Configuration -cmd_download="curl -#L -o {dst} {src}" -cmd_extract="tar xf {src}" - # Tools for the astronaut mksum() { echo $(md5sum "$@" 2> /dev/null | cut -d' ' -f1)