Skip to content

Commit

Permalink
Fix cache function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Nov 13, 2023
1 parent ff7a7b9 commit 01f5ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1230,8 +1230,8 @@ function iso() {

function cache() {

if [ ! -z ${CACHE_JOBS+x} ]; then export CACHE_JOBS=$PACKER_MAX_PROCS ; fi
if [ ! -z ${CACHE_JOBS+x} ]; then export CACHE_JOBS=4 ; fi
[ ! -n "$CACHE_JOBS" ] && export CACHE_JOBS=$PACKER_MAX_PROCS
[ ! -n "$CACHE_JOBS" ] && export CACHE_JOBS=1

unset PACKER_LOG ; unset LD_PRELOAD ; unset LD_LIBRARY_PATH ; unset PACKER_MAX_PROCS ; unset GOMAXPROCS ;

Expand Down

0 comments on commit 01f5ea3

Please sign in to comment.