Ubuntu Pastebin

Paste from apw at Wed, 16 Dec 2015 10:12:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
--- debian/local/plymouth.hook.orig	2015-12-16 10:02:59.444332600 +0000
+++ debian/local/plymouth.hook	2015-12-16 10:12:10.354136669 +0000
@@ -20,7 +20,7 @@
 . /usr/share/initramfs-tools/hook-functions
 
 THEME_PATH="$(update-alternatives --query default.plymouth 2>/dev/null | sed -e '/^Value:/!d' -e 's/^Value: \(.*\)/\1/')"
-THEME="$(basename ${THEME_PATH} .plymouth || true)"
+THEME="$(basename ${THEME_PATH:-none} .plymouth || true)"
 THEMES="/usr/share/plymouth/themes"
 
 mkdir -p "${DESTDIR}/${THEMES}"
@@ -37,7 +37,7 @@
 
 # default text theme alternative
 TEXTTHEME_PATH="$(update-alternatives --query text.plymouth 2>/dev/null | sed -e '/^Value:/!d' -e 's/^Value: \(.*\)/\1/')"
-TEXTTHEME="$(basename ${TEXTTHEME_PATH} .plymouth || true)"
+TEXTTHEME="$(basename ${TEXTTHEME_PATH:-none} .plymouth || true)"
 
 if [ -n "${TEXTTHEME}" ] & [ "${TEXTTHEME}" != "none" ]
 then
Download as text