mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54:22 +01:00
shut up an error message, if no custom banner specified
This commit is contained in:
parent
03f5a14344
commit
029caff796
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
TMD_OPTS="--tt-id=K"
|
TMD_OPTS="--tt-id=K"
|
||||||
TMP_FILES=(Another Another_Super_Mario_Brothers_Wii_2.0.zip nsmb.d Newer_Super_Mario_Bros._Wii_HS.zip XmasNewer NewerSMBW.zip NewerFiles "Newer Summer Sun" Newer_Summer_Sun.zip ZPW_1.1.ips lozpw110.rar "*[Ll]ink*[Pp]ast*smc" Epic_Super_Bowser_World_v1.00 Epic_Super_Bowser_World_v1.00.zip)
|
TMP_FILES=(Another Another_Super_Mario_Brothers_Wii_2.0.zip nsmb.d Newer_Super_Mario_Bros._Wii_HS.zip XmasNewer NewerSMBW.zip NewerFiles "Newer Summer Sun" Newer_Summer_Sun.zip ZPW_1.1.ips lozpw110.rar "*[Ll]ink*[Pp]ast*smc" Epic_Super_Bowser_World_v1.00 Epic_Super_Bowser_World_v1.00.zip)
|
||||||
DL_BANNER=FALSE
|
|
||||||
|
|
||||||
setup_tools () {
|
setup_tools () {
|
||||||
|
|
||||||
@ -85,10 +84,12 @@ download_banner () {
|
|||||||
|
|
||||||
apply_banner () {
|
apply_banner () {
|
||||||
|
|
||||||
if [[ ${BANNER} && -e ${BANNER} ]]; then
|
if [[ ${BANNER} != "" ]]; then
|
||||||
cp "${BANNER}" "${BANNER_LOCATION}"
|
if [[ -e ${BANNER} ]]; then
|
||||||
else
|
cp "${BANNER}" "${BANNER_LOCATION}"
|
||||||
echo "specified banner ${BANNER} does not exist, not modifying"
|
else
|
||||||
|
echo "specified banner ${BANNER} does not exist, not modifying"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user