fixed search that may fails to detect repository in certain conditions.

This commit is contained in:
Matteo Rossini 2016-01-11 20:40:33 +01:00
parent 6553f7d8c4
commit 8c3b93e006

View file

@ -879,7 +879,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
for i in ${PRIORITY[@]}; do
DIR="$i"
if echo "$DIR" | grep -q "[a-zA-Z0-9]\+[:]" ; then
DIR=$(echo "$i" | cut -f2- -d":")
DIR=$(echo "$i" | cut -f1 -d":")
fi
if [ "$CMD" == "file-search" ] ; then