From 6e48a090d26ba77f026c6ade823cf06f5918a1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sat, 27 Feb 2016 12:41:38 +0100 Subject: - Don't leak BUILD_IN_PROGRESS into $PWD. - Fixes -r. --- build.subr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build.subr') diff --git a/build.subr b/build.subr index 349b9f61..c044fe2b 100644 --- a/build.subr +++ b/build.subr @@ -128,11 +128,11 @@ compare_hash_manifest() { }; is_build_script_done() { - if [ -n "${ARG_BUILD_STEPS}" ]; then - if [ "${ARG_BUILD_STEPS}" = "finish" ]\ - || [ -z "${ARG_BUILD_STEPS#ALL}" ]; then + if [ -n "${ARG_RESTART_SCRIPT_AT}" ]; then + if [ "${1}" = "finish" ]\ + || [ -z "${ARG_RESTART_SCRIPT_AT#ALL}" ]; then return 1; # Build - elif ! match_list ${ARG_BUILD_STEPS} , ${1}; then + elif ! match_list ${ARG_RESTART_SCRIPT_AT} , ${1}; then return 0; # Skip else return 1; # Build -- cgit v1.2.3