replace two if -e with if -f

This commit is contained in:
Christopher Roy Bratusek 2016-09-09 20:07:46 +02:00
parent ce424c9a51
commit 284b0e2a74
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PATCHIMAGE_VERSION=7.5.0 PATCHIMAGE_VERSION=7.5.0
PATCHIMAGE_RELEASE=2016/09/09+ PATCHIMAGE_RELEASE=2016/09/09+
[[ -e ${HOME}/.patchimage.rc ]] && source "${HOME}"/.patchimage.rc [[ -f ${HOME}/.patchimage.rc ]] && source "${HOME}"/.patchimage.rc
setup_tools () { setup_tools () {

View File

@ -17,7 +17,7 @@ ask_input_image_wiimmfi () {
for image in "${PWD}"/*.{iso,wbfs} \ for image in "${PWD}"/*.{iso,wbfs} \
"${PATCHIMAGE_WBFS_DIR}"/*.{iso,wbfs}; do "${PATCHIMAGE_WBFS_DIR}"/*.{iso,wbfs}; do
if [[ -e ${image} && ! ${image} == "*/RMC*" && $(check_wfc "${image##*/}") == TRUE ]]; then if [[ -f ${image} && ! ${image} == "*/RMC*" && $(check_wfc "${image##*/}") == TRUE ]]; then
echo " ${image##*/} $(show_titles_db "${image##*/}")" echo " ${image##*/} $(show_titles_db "${image##*/}")"
fi fi
done done