Skip to content

Commit

Permalink
plugins/base: mkiso unbound fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Sep 9, 2021
1 parent 2e38ff7 commit 6f7b2de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/available/base.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ then mkiso ()
local destpath="${2:-../}"
local srcpath="${3:-${PWD}}"

if [ ! -f "${destpath}${isoname}.iso" ]; then
if [ ! -f "${destpath%/}/${isoname}.iso" ]; then
echo "writing ${isoname}.iso to ${destpath} from ${srcpath}"
mkisofs -V "${isoname}" -iso-level 3 -r -o "${destpath}${isoname}.iso" "${srcpath}"
mkisofs -V "${isoname}" -iso-level 3 -r -o "${destpath%/}/${isoname}.iso" "${srcpath}"
else
echo "${destpath}${isoname}.iso already exists"
echo "${destpath%/}/${isoname}.iso already exists"
fi
}
fi
Expand Down

0 comments on commit 6f7b2de

Please sign in to comment.