Not a unix person but need to update unix/linux script.
Essenially, I added a new optional input parameter to a script. If the parameter has content I need to append it to another value for later use in the script.
if [ _ENCRYPTION_SIGNATURE = "" ]
then
set P_SIG = ""
else
set P_SIG = "--sign -u " _ENCRYPTION_SIGNATURE
fi
echo p_encrypt_sig value = _ENCRYPTION_SIGNATURE
echo signature = $P_SIG
The echoed value of p_sig ends up null. What is wrong?
p_encrypt_sig value = ddmn-3m-qa
signature =
Essenially, I added a new optional input parameter to a script. If the parameter has content I need to append it to another value for later use in the script.
if [ _ENCRYPTION_SIGNATURE = "" ]
then
set P_SIG = ""
else
set P_SIG = "--sign -u " _ENCRYPTION_SIGNATURE
fi
echo p_encrypt_sig value = _ENCRYPTION_SIGNATURE
echo signature = $P_SIG
The echoed value of p_sig ends up null. What is wrong?
p_encrypt_sig value = ddmn-3m-qa
signature =