fix rm scripts

This commit is contained in:
Louis Abel 2023-09-24 16:14:20 -07:00
parent 4a4708b615
commit abc469d677
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36
3 changed files with 2 additions and 6 deletions

View File

@ -32,7 +32,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
for x in BaseOS Minimal; do for x in BaseOS Minimal; do
if [[ "${x}" != "BaseOS" ]]; then if [[ "${x}" != "BaseOS" ]]; then
echo "${x} ${ARCH}: Removing unnecessary boot image" echo "${x} ${ARCH}: Removing unnecessary boot image"
/bin/rm -v "${x}/${ARCH}/iso/"*boot* /bin/rm -v "${x}/${ARCH}/iso/Rocky-${REVISION}-20"*"${ARCH}"*.iso
fi fi
echo "${x} ${ARCH}: Moving ISO images" echo "${x} ${ARCH}: Moving ISO images"
mv "${x}/${ARCH}/iso/"* "isos/${ARCH}/" mv "${x}/${ARCH}/iso/"* "isos/${ARCH}/"

View File

@ -32,7 +32,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
for x in BaseOS Minimal; do for x in BaseOS Minimal; do
if [[ "${x}" != "BaseOS" ]]; then if [[ "${x}" != "BaseOS" ]]; then
echo "${x} ${ARCH}: Removing unnecessary boot image" echo "${x} ${ARCH}: Removing unnecessary boot image"
/bin/rm -v "${x}/${ARCH}/iso/"*boot* /bin/rm -v "${x}/${ARCH}/iso/Rocky-${REVISION}-20"*"${ARCH}"*.iso
fi fi
echo "${x} ${ARCH}: Moving ISO images" echo "${x} ${ARCH}: Moving ISO images"
mv "${x}/${ARCH}/iso/"* "isos/${ARCH}/" mv "${x}/${ARCH}/iso/"* "isos/${ARCH}/"

View File

@ -28,10 +28,6 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
# Sort the ISO's # Sort the ISO's
for ARCH in "${ARCHES[@]}"; do for ARCH in "${ARCHES[@]}"; do
for x in BaseOS Minimal; do for x in BaseOS Minimal; do
if [[ "${x}" != "BaseOS" ]]; then
echo "${x} ${ARCH}: Removing unnecessary boot image"
/bin/rm -v "${x}/${ARCH}/iso/"*boot*
fi
echo "${x} ${ARCH}: Moving ISO images" echo "${x} ${ARCH}: Moving ISO images"
mv "${x}/${ARCH}/iso/"* "isos/${ARCH}/" mv "${x}/${ARCH}/iso/"* "isos/${ARCH}/"
done done