summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_cache
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/bootstrap_cache')
-rwxr-xr-xscripts/build/bootstrap_cache12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/build/bootstrap_cache b/scripts/build/bootstrap_cache
index b80e6661a..8cbf30536 100755
--- a/scripts/build/bootstrap_cache
+++ b/scripts/build/bootstrap_cache
@@ -29,13 +29,16 @@ then
exit 0
fi
+_ACTION="${1}"
+shift
+
+# Set non-default stage file name (auto picked up by the functions)
# Note, this (plus the applicable extension added below) must match that used in `bootstrap_debootstrap`
-STAGE_FILE="bootstrap_cache"
+STAGE_FILE="bootstrap_cache.${_ACTION}"
-case "${1}" in
+case "${_ACTION}" in
restore)
# Checking stage file
- STAGE_FILE="${STAGE_FILE}.restore"
Check_stagefile "${STAGE_FILE}"
if [ -d cache/bootstrap ]
@@ -53,7 +56,7 @@ case "${1}" in
# Creating stage file
Create_stagefile "${STAGE_FILE}"
- Create_stagefile bootstrap
+ Create_stagefile "bootstrap"
exit 0
fi
@@ -63,7 +66,6 @@ case "${1}" in
Echo_message "Saving bootstrap stage to cache..."
# Checking stage file
- STAGE_FILE="${STAGE_FILE}.save"
Check_stagefile "${STAGE_FILE}"
# Acquire lock file