From: Ray Strode Date: Tue, 13 Jul 2010 21:33:39 +0000 (-0400) Subject: [populate-initrd] don't croak when encountering broken symlink X-Git-Tag: 0.8.4~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5380671be7a4338fb288db1acb4d42591393510;p=thirdparty%2Fplymouth.git [populate-initrd] don't croak when encountering broken symlink Because of an apparent think-o in the script, if a custom theme has a broken symlink in it, plymouth-populate-initrd would silently stop processing files and ship an incomplete set of data files. This commit changes "break" to "continue" so that broken symlinks are ignored, which was probably the original intent. --- diff --git a/scripts/plymouth-populate-initrd.in b/scripts/plymouth-populate-initrd.in index 7f0c3416..7a2f0ca1 100755 --- a/scripts/plymouth-populate-initrd.in +++ b/scripts/plymouth-populate-initrd.in @@ -102,7 +102,7 @@ inst ${PLYMOUTH_PLUGIN_PATH}/renderers/frame-buffer.so $INITRDDIR if [ -d ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then for x in ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/* ; do - [ ! -f "$x" ] && break + [ ! -f "$x" ] && continue inst $x $INITRDDIR done fi