Skip to content

Commit

Permalink
Appease shellcheck once again
Browse files Browse the repository at this point in the history
  • Loading branch information
NateChoe1 committed Dec 8, 2023
1 parent c2054a4 commit 7c6fe7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ addDisk () {
local OTHER_FORMS
OTHER_FORMS="$(find "${DIR}" -maxdepth 1 | sed -n -- "/\/${DISK_ROOT}\./p" | sed -- "/\.${DISK_EXT}$/d")"

if ! [[ -z "${OTHER_FORMS}" ]] ; then
if [[ -n "${OTHER_FORMS}" ]] ; then
local SOURCE_FILE
local SOURCE_EXT
local SOURCE_FMT
SOURCE_FILE="$(echo "${OTHER_FORMS}" | head -n1)"
SOURCE_EXT="$(echo "${SOURCE_FILE}" | sed 's/^.*\.//')"
SOURCE_EXT="$(echo "${SOURCE_FILE//*./}" | sed 's/^.*\.//')"
SOURCE_FMT="$(ext2fmt "${SOURCE_EXT}")"
info "Other disk formats detected for ${DISK_DESC} (${OTHER_FORMS//$'\n'/, }), converting ${SOURCE_FILE}"
if ! convertDisk "${SOURCE_FILE}" "${SOURCE_FMT}" "${DISK_FILE}" "${DISK_FMT}" ; then
Expand Down

0 comments on commit 7c6fe7e

Please sign in to comment.