@@ -1329,14 +1329,17 @@ restoreAppAndLibs() {
1329
1329
1330
1330
createFolder " ${DOMAIN_HOME} /lib" " This is the './lib' directory within DOMAIN_HOME directory 'domain.spec.domainHome'." || return 1
1331
1331
local WLSDEPLOY_DOMAINLIB=" wlsdeploy/domainLibraries"
1332
-
1332
+ local TMP_EXTRACT_LIST= " "
1333
1333
for file in $( sort_files ${IMG_ARCHIVES_ROOTDIR} " *.zip" )
1334
1334
do
1335
1335
1336
1336
# expand the archive domain libraries to the domain lib, 11 is caution when zip entry doesn't exists
1337
1337
cd ${DOMAIN_HOME} /lib || exitOrLoop
1338
1338
if [ -f $DOMAIN_BIN_LIB_LIST ] ; then
1339
- unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} $( awk ' {print $0}' <<< $( grep " wlsdeploy/domainLibraries" $DOMAIN_BIN_LIB_LIST ) )
1339
+ TMP_EXTRACT_LIST=$( awk ' {print $0}' <<< $( grep " wlsdeploy/domainLibraries" $DOMAIN_BIN_LIB_LIST ) )
1340
+ if [ -n " $TMP_EXTRACT_LIST " ] ; then
1341
+ unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} $TMP_EXTRACT_LIST
1342
+ fi
1340
1343
else
1341
1344
unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} wlsdeploy/domainLibraries/*
1342
1345
fi
@@ -1351,7 +1354,10 @@ restoreAppAndLibs() {
1351
1354
# zip entry doesn't exists
1352
1355
cd ${DOMAIN_HOME} /bin || exitOrLoop
1353
1356
if [ -f $DOMAIN_BIN_LIB_LIST ] ; then
1354
- unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} $( awk ' {print $0}' <<< $( grep " wlsdeploy/domainBin" $DOMAIN_BIN_LIB_LIST ) )
1357
+ TMP_EXTRACT_LIST=$( awk ' {print $0}' <<< $( grep " wlsdeploy/domainBin" $DOMAIN_BIN_LIB_LIST ) )
1358
+ if [ -n " $TMP_EXTRACT_LIST " ] ; then
1359
+ unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} $TMP_EXTRACT_LIST
1360
+ fi
1355
1361
else
1356
1362
unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} wlsdeploy/domainBin/*
1357
1363
fi
0 commit comments