Skip to content

Commit

Permalink
print LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Dec 25, 2024
1 parent 970a2af commit 6ac230f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/runner/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,16 @@ if [[ "${CONTINUE_SBUILD}" == "YES" ]]; then
done
if [[ ! -s "${SBUILD_OUTDIR}/LICENSE" || $(stat -c%s "${SBUILD_OUTDIR}/LICENSE") -le 10 ]]; then
echo -e "[-] WARNING: No Valid LICENSE Exists at ${SBUILD_OUTDIR}/LICENSE"
elif [[ -s "${SBUILD_OUTDIR}/LICENSE" && $(stat -c%s "${SBUILD_OUTDIR}/LICENSE") -gt 10 ]]; then
echo -e "\n" && cat "${SBUILD_OUTDIR}/LICENSE" && echo -e "\n"
fi
else
echo -e "[-] No Valid SRC for LICENSE Exists in ${SBUILD_SCRIPT_BLOB:-RECIPE}"
fi
unset LICENSE_SRC TMP_LICENSE
else
echo -e "\n[+] Found LICENSE ==> [${SBUILD_OUTDIR}/LICENSE]"
echo -e "\n" && cat "${SBUILD_OUTDIR}/LICENSE" && echo -e "\n"
fi
fi
#Sanity
Expand Down

0 comments on commit 6ac230f

Please sign in to comment.