mirror of
https://tvoygit.ru/Djam/r11-builder-agent.git
synced 2025-02-23 10:22:45 +00:00
Mask dots in grep regexp
This commit is contained in:
parent
a9f07c9e13
commit
a0506cccf7
1 changed files with 2 additions and 2 deletions
|
@ -266,7 +266,7 @@ fi
|
||||||
|
|
||||||
sudo touch -d "23 hours ago" $config_dir/default.cfg
|
sudo touch -d "23 hours ago" $config_dir/default.cfg
|
||||||
|
|
||||||
spec_name=`ls -1 $build_package | grep '.spec$'`
|
spec_name=`ls -1 $build_package | grep '\.spec$'`
|
||||||
echo '--> Build src.rpm'
|
echo '--> Build src.rpm'
|
||||||
try_rebuild=true
|
try_rebuild=true
|
||||||
retry=0
|
retry=0
|
||||||
|
@ -384,7 +384,7 @@ find_spec() {
|
||||||
[ "$rerun_tests" = 'true' ] && return 0
|
[ "$rerun_tests" = 'true' ] && return 0
|
||||||
|
|
||||||
# Check count of *.spec files (should be one)
|
# Check count of *.spec files (should be one)
|
||||||
x=$(ls -1 | grep -c '.spec$' | sed 's/^ *//' | sed 's/ *$//')
|
x=$(ls -1 | grep -c '\.spec$' | sed 's/^ *//' | sed 's/ *$//')
|
||||||
if [ "$x" -eq "0" ] ; then
|
if [ "$x" -eq "0" ] ; then
|
||||||
echo '--> There are no spec files in repository.'
|
echo '--> There are no spec files in repository.'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue