From e1381625ad6dd4600b8b61ed296d1351d55c07b9 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Tue, 20 Dec 2011 22:58:03 +0100 Subject: [PATCH] Ensure that the file used for replacing the template parameters is a file. We now ship a directory within our grub template directory for our theme. This will result in an sed error 'not a regular file' as the directory is indeed no regular file. This make sure that the file used by sed is a regular file. --- grml-live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml-live b/grml-live index 020e483..923c934 100755 --- a/grml-live +++ b/grml-live @@ -929,7 +929,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then # adjust all variables in the templates with the according distribution information for file in "${BUILD_OUTPUT}"/boot/isolinux/*.cfg "${BUILD_OUTPUT}"/boot/isolinux/*.msg \ "${BUILD_OUTPUT}"/boot/grub/* ; do - if [ -r "${file}" ] ; then + if [ -r "${file}" ] && [ -f "${file}" ] ; then sed -i "s/%ARCH%/$ARCH/g" "${file}" sed -i "s/%DATE%/$DATE/g" "${file}" sed -i "s/%DISTRI_INFO%/$DISTRI_INFO/g" "${file}" -- 2.1.4