diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-14 13:43:20 -0400 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-14 13:43:20 -0400 |
commit | 4ac2b11c80cd9baab830f2d5bd7a13ae0396a7ce (patch) | |
tree | 7a2478683ab123e7a5017be1d1746597181c5218 | |
parent | e13d4b56eabe125b9a4a73a25f04060518e82048 (diff) | |
download | alpine-conf-4ac2b11c80cd9baab830f2d5bd7a13ae0396a7ce.zip |
setup-bootable: strip off trailing / in srcdir variable
strip off trailing /
-rw-r--r-- | setup-bootable.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-bootable.in b/setup-bootable.in index 827d987..7ecedfb 100644 --- a/setup-bootable.in +++ b/setup-bootable.in @@ -87,7 +87,7 @@ dest=${2:-/media/usb} srcdir= # Find the srcdir or srcurl. mount loopback if needed if [ -f "$src"/.alpine-release ]; then - srcdir="$src" + srcdir="`echo $src | sed -r 's,/$,,'`" else case "$src" in http://*|ftp://*) srcurl="$src";; |