Skip to content

Commit

Permalink
mki-copy-our2out: MKI_OUTNAME may be empty
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
  • Loading branch information
legionus committed Aug 9, 2023
1 parent 6fa62cf commit 6434a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/mki-copy-our2out
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
# shellcheck source=tools/mki-sh-functions
. "${0%/*}"/mki-sh-functions

MKI_OUTNAME="${MKI_OUTNAME:-}"
cleanup="${CLEANUP_OUTDIR:-}"
subprofile="${SUBPROFILE:-0}"

verbose "has started executing."

if [ "${MKI_OUTNAME:?}" != "${MKI_OUTNAME##*/}" ]; then
if [ "$MKI_OUTNAME" != "${MKI_OUTNAME##*/}" ]; then
outdir="$(readlink -ev "${MKI_OUTNAME%/*}")"
cleanup=
fi
Expand Down

0 comments on commit 6434a06

Please sign in to comment.