Commit 36f8489a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack: use grep with -q

parent 8a9ec0ac
......@@ -5,12 +5,12 @@ RETURNTARNAME="$2"
. $(dirname $0)/common.sh
if echo "$TAR" | grep "Sentinel_LDK_Linux_Run-time_Installer_script.tar.gz" ; then
if echo "$TAR" | grep -q "Sentinel_LDK_Linux_Run-time_Installer_script.tar.gz" ; then
erc $TAR || fatal
TAR="Sentinel_LDK_Linux_Run-time_Installer_script/aksusbd-*.tar.gz"
fi
if echo "$TAR" | grep "aksusbd" ; then
if echo "$TAR" | grep -q "aksusbd" ; then
erc $TAR || fatal
else
fatal "How no idea how to handle $TAR"
......
......@@ -5,8 +5,8 @@ RETURNTARNAME="$2"
. $(dirname $0)/common.sh
if ! echo "$TAR" | grep "linux-UFRII-drv" ; then
fatal "How no idea how to handle $TAR"
if ! echo "$TAR" | grep -q "linux-UFRII-drv" ; then
fatal "No idea how to handle $TAR"
fi
erc unpack $TAR && cd linux-* || fatal
......
......@@ -5,12 +5,12 @@ RETURNTARNAME="$2"
. $(dirname $0)/common.sh
if echo "$TAR" | grep Linux_Universal_Driver.zip ; then
if echo "$TAR" | grep -q Linux_Universal_Driver.zip ; then
erc $TAR || fatal
TAR=$(echo KyoceraLinuxPackages-*.tar.gz)
fi
if echo "$TAR" | grep KyoceraLinuxPackages ; then
if echo "$TAR" | grep -q KyoceraLinuxPackages ; then
erc $TAR || fatal
else
fatal "How no idea how to handle $TAR"
......
......@@ -5,11 +5,11 @@ RETURNTARNAME="$2"
. $(dirname $0)/common.sh
if echo "$TAR" | grep "Pantum Ubuntu Driver V.*.zip" ; then
if echo "$TAR" | grep -q "Pantum Ubuntu Driver V.*.zip" ; then
erc "$TAR" || fatal
elif echo "$TAR" | grep "Pantum%20Ubuntu%20Driver%20V.*.zip" ; then
elif echo "$TAR" | grep -q "Pantum%20Ubuntu%20Driver%20V.*.zip" ; then
erc "$TAR" || fatal
elif echo "$TAR" | grep "linux_pantum.7z" ; then
elif echo "$TAR" | grep -q "linux_pantum.7z" ; then
erc "$TAR" || fatal
return_tar linux_pantum.deb
else
......
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