From 9f78ed8d43fad7287022e04b25abd4595bfc8835 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 13 Nov 2014 21:09:48 +0100 Subject: [PATCH] Final configuration implementation --- astronaut | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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)