1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

code quality

This commit is contained in:
Jason N. 2024-04-02 16:23:51 -04:00
parent e70f38a552
commit 9abd64f768
4 changed files with 25 additions and 25 deletions

View file

@ -9,7 +9,7 @@ result=0
if [ -z "${add_line_repo}" ]
then
echo "Repo name not updated on add_remote line"
echo ${add_line}
echo "${add_line}"
result=1
else
echo "Repo name found on add_remote line"
@ -18,7 +18,7 @@ fi
if [ -z "${add_line_url}" ]
then
echo "Repo url not updated on add_remote line"
echo ${add_line}
echo "${add_line}"
result=1
else
echo "Repo url found on add_remote line"
@ -31,7 +31,7 @@ replace_line_repo=$(echo ${replace_line} | grep ${FLATPAK_REMOTE_NAME})
if [ -z "${replace_line_repo}" ]
then
echo "Repo name not updated on replace_installed_refs line"
echo ${replace_line}
echo "${replace_line}"
result=1
else
echo "Repo name found on replace_installed_refs line"

View file

@ -2,13 +2,13 @@
#set -ex
checkisomd5 ../../${ISO_NAME}
checkisomd5 "../../${ISO_NAME}"
if [[ $? != 0 ]]
then
echo "Found:"
checkisomd5 --md5sumonly ../../${ISO_NAME}
checkisomd5 --md5sumonly "../../${ISO_NAME}"
echo "Expected:"
implantisomd5 --force ../../${ISO_NAME}
implantisomd5 --force "../../${ISO_NAME}"
fi
cd $(dirname ../../${ISO_NAME}) && sha256sum -c $(basename ${ISO_NAME})-CHECKSUM
cd $(dirname "../../${ISO_NAME}") && sha256sum -c "$(basename ${ISO_NAME})-CHECKSUM"