mirror of
https://github.com/zuno/slackpkgplus
synced 2025-01-13 20:01:04 +01:00
A repository name can contain letters, numbers, underscore (_) and minus (-)
This commit is contained in:
parent
eff79b9ccf
commit
e1290e4f2a
1 changed files with 3 additions and 3 deletions
|
@ -780,7 +780,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if echo "$CPRIORITY " | grep -q "[a-zA-Z0-9]\+[:]" ; then
|
#if echo "$CPRIORITY " | grep -q "^[-_[:alnum:]]\+[:]" ; then
|
||||||
if [[ "$CPRIORITY" =~ ^[-_[:alnum:]]+[:] ]] ; then
|
if [[ "$CPRIORITY" =~ ^[-_[:alnum:]]+[:] ]] ; then
|
||||||
|
|
||||||
# [Reminder] ARGUMENT is always a basename, but PAT can be :
|
# [Reminder] ARGUMENT is always a basename, but PAT can be :
|
||||||
|
@ -887,7 +887,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
|
|
||||||
for i in ${PRIORITY[@]}; do
|
for i in ${PRIORITY[@]}; do
|
||||||
DIR="$i"
|
DIR="$i"
|
||||||
if echo "$DIR" | grep -q "[a-zA-Z0-9]\+[:]" ; then
|
if echo "$DIR" | grep -q "^[-_[:alnum:]]\+[:]" ; then
|
||||||
DIR=$(echo "$i" | cut -f1 -d":")
|
DIR=$(echo "$i" | cut -f1 -d":")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1445,7 +1445,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
PRIORITY_FILTER_RULE="${repository} .*"
|
PRIORITY_FILTER_RULE="${repository} .*"
|
||||||
|
|
||||||
# You can specify 'slackpkg install reponame:packagename'
|
# You can specify 'slackpkg install reponame:packagename'
|
||||||
elif echo "$pref" | grep -q "[a-zA-Z0-9]\+[:][a-zA-Z0-9]\+" ; then
|
elif echo "$pref" | grep -q "^[-_[:alnum:]]\+[:][a-zA-Z0-9]\+" ; then
|
||||||
|
|
||||||
if [ "$CMD" == "install" ] || [ "$CMD" == "upgrade" ] ; then
|
if [ "$CMD" == "install" ] || [ "$CMD" == "upgrade" ] ; then
|
||||||
repository=$(echo "$pref" | cut -f1 -d":")
|
repository=$(echo "$pref" | cut -f1 -d":")
|
||||||
|
|
Loading…
Reference in a new issue