diff options
-rw-r--r-- | README | 1 | ||||
-rwxr-xr-x | src/fifa.sh | 15 |
2 files changed, 11 insertions, 5 deletions
@@ -54,3 +54,4 @@ Notes: overriding things of these 3 classes - you _must_ specify a profile, to avoid errors. take 'base' if unsure - don't edit the base profile (or any other that comes by default), rather make your own. It's easy! + - The phases are started by the start_process function. You can also override this function to take flow control in your own hands (eg iterative, menu-based installer) diff --git a/src/fifa.sh b/src/fifa.sh index 7fbfa63..09d6d1e 100755 --- a/src/fifa.sh +++ b/src/fifa.sh @@ -120,6 +120,15 @@ execute () } +start_process () +{ + execute phase preparation + execute phase basics + execute phase system + execute phase finish +} + + ###### perform actual logic ###### echo "Welcome to $TITLE" @@ -137,8 +146,4 @@ load_profile $1 PACMAN=pacman PACMAN_TARGET="pacman --root $var_TARGET_DIR --config /tmp/pacman.conf" -execute phase preparation -execute phase basics -execute phase system -execute phase finish - +start_process |