Commit 6ed59d2b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack pantum: fix tar name handling (there are no spaces more)

parent 6bc45bf5
...@@ -5,7 +5,8 @@ RETURNTARNAME="$2" ...@@ -5,7 +5,8 @@ RETURNTARNAME="$2"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
if echo "$TAR" | grep -q "Pantum Ubuntu Driver V.*.zip" ; then # epm replaces spaces with - in downloaded files
if echo "$TAR" | grep -q "Pantum[ -]Ubuntu[ -]Driver[- ]V.*.zip" ; then
erc "$TAR" || fatal erc "$TAR" || fatal
elif echo "$TAR" | grep -q "Pantum%20Ubuntu%20Driver%20V.*.zip" ; then elif echo "$TAR" | grep -q "Pantum%20Ubuntu%20Driver%20V.*.zip" ; then
erc "$TAR" || fatal erc "$TAR" || fatal
...@@ -19,7 +20,6 @@ else ...@@ -19,7 +20,6 @@ else
fatal "We support only Pantum Ubuntu Driver V.*.zip" fatal "We support only Pantum Ubuntu Driver V.*.zip"
fi fi
rm -v "$TAR"
# drop dirname with spaces # drop dirname with spaces
mv Pantum* PantumDriver || fatal mv Pantum* PantumDriver || fatal
cd PantumDriver/Resources || fatal cd PantumDriver/Resources || fatal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment