@@ -1253,7 +1253,7 @@ function encrypt_decrypt_domain_secret() {
1253
1253
function prepareMIIServer() {
1254
1254
1255
1255
trace " Model-in-Image: Creating domain home."
1256
-
1256
+ local ret=0
1257
1257
# primordial domain contain the basic structures, security and other fmwconfig templated info
1258
1258
# domainzip only contains the domain configuration (config.xml jdbc/ jms/)
1259
1259
# Both are needed for the complete domain reconstruction
@@ -1304,7 +1304,8 @@ function prepareMIIServer() {
1304
1304
# expand the archive domain libraries to the domain lib, 11 is caution when zip entry doesn't exists
1305
1305
cd ${DOMAIN_HOME} /lib || exitOrLoop
1306
1306
unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} wlsdeploy/domainLibraries/*
1307
- if [ $? -ne 0 && $? -ne 11 ] ; then
1307
+ ret=$?
1308
+ if [ $ret -ne 0 ] && [ $ret -ne 11 ] ; then
1308
1309
trace SEVERE " Domain Source Type is FromModel, error in extracting domainLibraries " \
1309
1310
" ${IMG_ARCHIVES_ROOTDIR} /${file} "
1310
1311
exitOrLoop
@@ -1314,7 +1315,8 @@ function prepareMIIServer() {
1314
1315
# zip entry doesn't exists
1315
1316
cd ${DOMAIN_HOME} /bin || exitOrLoop
1316
1317
unzip -jo ${IMG_ARCHIVES_ROOTDIR} /${file} wlsdeploy/domainBin/*
1317
- if [ $? -ne 0 && $? -ne 11 ] ; then
1318
+ ret=$?
1319
+ if [ $ret -ne 0 ] && [ $ret -ne 11 ] ; then
1318
1320
trace SEVERE " Domain Source Type is FromModel, error in extracting domainBin " \
1319
1321
" ${IMG_ARCHIVES_ROOTDIR} /${file} "
1320
1322
exitOrLoop
0 commit comments