summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-07-14 13:43:20 -0400
committerJeff Bilyk <jbilyk@gmail.com>2011-07-14 13:43:20 -0400
commit4ac2b11c80cd9baab830f2d5bd7a13ae0396a7ce (patch)
tree7a2478683ab123e7a5017be1d1746597181c5218
parente13d4b56eabe125b9a4a73a25f04060518e82048 (diff)
downloadalpine-conf-4ac2b11c80cd9baab830f2d5bd7a13ae0396a7ce.zip
setup-bootable: strip off trailing / in srcdir variable
strip off trailing /
-rw-r--r--setup-bootable.in2
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";;