commitpkg: Avoid unnecessary use of grep(1)
Use bash patterns instead of using grep(1) to check if a source file contains the string "://". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
c8ba49c6a1
commit
25aae4ecfe
|
@ -79,9 +79,9 @@ esac
|
|||
|
||||
# check if all local source files are under version control
|
||||
for s in "${source[@]}"; do
|
||||
echo "$s" | grep -Fvq '://' && \
|
||||
svn status "$s" | grep -q '^\?' && \
|
||||
abort "$s is not under version control"
|
||||
if [[ $s != *://* ]] && svn status "$s" | grep -q '^\?'; then
|
||||
abort "$s is not under version control"
|
||||
fi
|
||||
done
|
||||
|
||||
# check if changelog and install files are under version control
|
||||
|
|
Loading…
Reference in New Issue