diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-01-02 12:24:55 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-01-02 12:24:55 -0800 |
commit | 73c852a0c1f0e906fc0a9af64aa642b96bed73e7 (patch) | |
tree | b2e13ca7cecc1546c3846f7840fb5a2d961e2781 | |
parent | make nfs togglable fixes musl builds (requires nfs disabled) (diff) | |
download | genkernel-73c852a0c1f0e906fc0a9af64aa642b96bed73e7.tar.gz genkernel-73c852a0c1f0e906fc0a9af64aa642b96bed73e7.tar.bz2 genkernel-73c852a0c1f0e906fc0a9af64aa642b96bed73e7.zip |
Revert "clean up an if statement"
This reverts commit a22f45125393935e2e0a50cdfc303440cdc946d4.
The first if statement checks if busybox cache exists, and if so, does
it need to be invalidated (rm the cache file).
The second if statement checks if the cache does NOT exist, and builds
the new busybox cache.
-rwxr-xr-x | gen_compile.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh index 70a67327..a730d771 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -424,7 +424,10 @@ compile_busybox() { else print_info 1 "busybox: >> Using cache" fi - else + fi + + if [ ! -f "${BUSYBOX_BINCACHE}" ] + then cd "${TEMP}" rm -rf "${BUSYBOX_DIR}" > /dev/null /bin/tar -jxpf ${BUSYBOX_SRCTAR} || |