]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[populate-initrd] don't croak when encountering broken symlink
authorRay Strode <rstrode@redhat.com>
Tue, 13 Jul 2010 21:33:39 +0000 (17:33 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 13 Jul 2010 21:33:39 +0000 (17:33 -0400)
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.

scripts/plymouth-populate-initrd.in

index 7f0c341669aa5961ec58076687a753bbf833ab5c..7a2f0ca12f667010c944d53ef151b529040271c3 100755 (executable)
@@ -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