summaryrefslogtreecommitdiff
path: root/ziparch.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-07 13:29:54 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-07 13:29:54 +0200
commita879b4e708b3e46c9697ba6581687eeb5b02a320 (patch)
treef85acc5cb1a7c0b03a050c879c20cab3deb9f40e /ziparch.sh
parent556dffcdad42b938bc196819aa463247de709765 (diff)
parentc07d0c2d2f6f7b0eb6e92cc6204bf05037957e82 (diff)
state from 2014-09-07 13:30 MESZ
Diffstat (limited to 'ziparch.sh')
-rw-r--r--ziparch.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/ziparch.sh b/ziparch.sh
index d4496ca..44f3382 100644
--- a/ziparch.sh
+++ b/ziparch.sh
@@ -9,6 +9,10 @@ rm -rf _zipdir
mkdir _zipdir
NOTFOUND=
+# Split on lines, not spaces
+OIFS="$IFS"
+IFS='
+'
for i in `cat adirs bdirs`
do
echo
@@ -35,9 +39,9 @@ do
fi
fi
- if [ ! -e ${i}/${j} ] ; then
+ if [ ! -e "${i}/${j}" ] ; then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Can't find file ${i}/${j} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- NOTFOUND="$NOTFOUND ${i}/${j}"
+ NOTFOUND=$NOTFOUND ${i}/${j}
else
dos2unix ${i}/${j}
cp ${i}/${j} _zipdir/${i}/${j}
@@ -72,7 +76,7 @@ do
if [ ! -e ${i}/${j} ] ; then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Can't find file ${i}/${j} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- NOTFOUND="$NOTFOUND ${i}/${j}"
+ NOTFOUND=$NOTFOUND ${i}/${j}
else
dos2unix ${i}/${j}
cp ${i}/${j} _zipdir/${i}/${j}
@@ -94,3 +98,5 @@ if [ "X$NOTFOUND" != "X" ] ; then
echo "!!!!!! Didn't find $NOTFOUND !!!!!!"
fi
echo "Finished Complete Argyll source archive argyll.zip... "
+
+IFS="$OIFS"