diff options
author | Eric Hameleers <alien@slackware.com> | 2019-09-08 20:47:30 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-09-08 20:47:30 +0200 |
commit | 42e29623ed3a1f33cb98c1e084a5133042345ea2 (patch) | |
tree | f5dbf15eb707199367e20b99950f27c6b44bf4d9 /upslak.sh | |
parent | 4bc87ea3ac44a4cd4142520557eb75e21092456b (diff) | |
download | liveslak-42e29623ed3a1f33cb98c1e084a5133042345ea2.tar.gz liveslak-42e29623ed3a1f33cb98c1e084a5133042345ea2.tar.xz |
upslak.sh: fix path determination for kernel and modules
Thanks to 0XBF @linuxquestions.org for debugging.
Diffstat (limited to 'upslak.sh')
-rw-r--r-- | upslak.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -482,7 +482,7 @@ getpath_kernelimg () { local MYDATA="${*}" [ -z "${MYDATA}" ] && echo "" - if [ -n "$(file \"${MYDATA}\" |grep -E 'x86 boot (executable|sector)')" ]; then + if [ -n "$(file "${MYDATA}" |grep -E 'x86 boot (executable|sector)')" ]; then # We have a kernel image: echo "${MYDATA}" else @@ -579,15 +579,15 @@ while [ ! -z "$1" ]; do exit ;; -i|--init) - LIVEINIT="$(cd $(dirname $2); pwd)/$(basename $2)" + LIVEINIT="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")" shift 2 ;; -k|--kernel) - KERNEL="$2" + KERNEL="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")" shift 2 ;; -m|--kmoddir) - KMODDIR="$2" + KMODDIR="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")" shift 2 ;; -n|--netsupport) |