summaryrefslogtreecommitdiffstats
path: root/hook/archlogo
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-08 21:30:57 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-08 21:30:57 +0200
commit002175a951e8f4a98ee98a94dc7db70169cd6f08 (patch)
treefc2fbf4a6c61bd1a8ab913985ae0c75695c8f0f5 /hook/archlogo
parente177a5b8179bf5e652b67c222710470b6acf214e (diff)
downloadmkinitcpio-archlogo-002175a951e8f4a98ee98a94dc7db70169cd6f08.tar.gz
mkinitcpio-archlogo-002175a951e8f4a98ee98a94dc7db70169cd6f08.tar.zst
change dir before cat
This should work around whan anybody tries to give pathes, not only the name.
Diffstat (limited to 'hook/archlogo')
-rw-r--r--hook/archlogo3
1 files changed, 2 insertions, 1 deletions
diff --git a/hook/archlogo b/hook/archlogo
index 688b84b..c2ceeee 100644
--- a/hook/archlogo
+++ b/hook/archlogo
@@ -2,5 +2,6 @@
run_earlyhook() {
source /etc/archlogo.conf
- cat "/usr/share/archlogo/${ARCHLOGO}"
+ cd /usr/share/archlogo/
+ cat "${ARCHLOGO}"
}