summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-07-17 16:18:53 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:27 +0100
commit5a34eddc176e4845e0e51b34520e229decdc1603 (patch)
tree53e980dbb45b5c28614bb752ac4be64fc77c3586 /hooks
parentb50fd2adf5fa1f179e037db1c1410bdb37dbdfa6 (diff)
downloadlive-boot-5a34eddc176e4845e0e51b34520e229decdc1603.tar.gz
live-boot-5a34eddc176e4845e0e51b34520e229decdc1603.zip
Making inclusion of languagelist conditional in live hook.
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/live7
1 files changed, 5 insertions, 2 deletions
diff --git a/hooks/live b/hooks/live
index 16a2d0c..d87bfe7 100755
--- a/hooks/live
+++ b/hooks/live
@@ -27,8 +27,11 @@ esac
# Handling live-boot
# Configuration
-mkdir -p "${DESTDIR}"/usr/share/live-boot
-cp /usr/share/live-boot/languagelist "${DESTDIR}"/usr/share/live-boot
+if [ -e /usr/share/live-boot/languagelist ]
+then
+ mkdir -p "${DESTDIR}"/usr/share/live-boot
+ cp /usr/share/live-boot/languagelist "${DESTDIR}"/usr/share/live-boot
+fi
# Directories
mkdir -p "${DESTDIR}"/lib/live-boot