(minor) bash -> sh changes in some non-core code

/bin/bash is muscle memory for me, although it appears that not too much
of the actual code is bash-specific, so it's reasonably easy to fix.
This commit is contained in:
Sitaram Chamarty 2012-10-27 07:07:30 +05:30
parent 3eefc06551
commit 4eb8cd4ad1
5 changed files with 6 additions and 8 deletions

View file

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/sh
# TODO: convert to perl!
# gitolite VREF to count number of changed/new files in a push # gitolite VREF to count number of changed/new files in a push
@ -34,7 +33,7 @@ nf=
# $oldsha when you update an old feature branch from master and then push it # $oldsha when you update an old feature branch from master and then push it
count=`git log --name-only $nf --format=%n $newtree --not --all | grep . | sort -u | perl -ne '}{print "$."'` count=`git log --name-only $nf --format=%n $newtree --not --all | grep . | sort -u | perl -ne '}{print "$."'`
[[ $count -gt $max ]] && { [ $count -gt $max ] && {
# count has been exceeded. If $9 was NO_SIGNOFF there's still a chance # count has been exceeded. If $9 was NO_SIGNOFF there's still a chance
# for redemption -- if the top commit has a proper signed-off by line # for redemption -- if the top commit has a proper signed-off by line
[ "$9" = "NO_SIGNOFF" ] && { [ "$9" = "NO_SIGNOFF" ] && {

View file

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/sh
# TODO: convert to perl!
# gitolite VREF to find autogenerated files # gitolite VREF to find autogenerated files

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# gitolite VREF to count votes before allowing pushes to certain branches. # gitolite VREF to count votes before allowing pushes to certain branches.

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead # For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead
# of putting the text in the "description" file. This is easier because it # of putting the text in the "description" file. This is easier because it

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# manage local, gitolite-controlled, copies of read-only upstream repos. # manage local, gitolite-controlled, copies of read-only upstream repos.