From 4eb8cd4ad17f961b35c2be4381c30dfde582bc84 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sat, 27 Oct 2012 07:07:30 +0530 Subject: [PATCH] (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. --- src/VREF/COUNT | 5 ++--- src/VREF/FILETYPE | 3 +-- src/VREF/VOTES | 2 +- src/triggers/post-compile/update-description-file | 2 +- src/triggers/upstream | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/VREF/COUNT b/src/VREF/COUNT index 6b5cacf..f4c3eae 100755 --- a/src/VREF/COUNT +++ b/src/VREF/COUNT @@ -1,5 +1,4 @@ -#!/bin/bash -# TODO: convert to perl! +#!/bin/sh # 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 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 # for redemption -- if the top commit has a proper signed-off by line [ "$9" = "NO_SIGNOFF" ] && { diff --git a/src/VREF/FILETYPE b/src/VREF/FILETYPE index 2115a5c..3f1d5f9 100755 --- a/src/VREF/FILETYPE +++ b/src/VREF/FILETYPE @@ -1,5 +1,4 @@ -#!/bin/bash -# TODO: convert to perl! +#!/bin/sh # gitolite VREF to find autogenerated files diff --git a/src/VREF/VOTES b/src/VREF/VOTES index bb6bf22..8dc3563 100755 --- a/src/VREF/VOTES +++ b/src/VREF/VOTES @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # gitolite VREF to count votes before allowing pushes to certain branches. diff --git a/src/triggers/post-compile/update-description-file b/src/triggers/post-compile/update-description-file index 7d00298..f8c2bd6 100755 --- a/src/triggers/post-compile/update-description-file +++ b/src/triggers/post-compile/update-description-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead # of putting the text in the "description" file. This is easier because it diff --git a/src/triggers/upstream b/src/triggers/upstream index 7834778..7c4981d 100755 --- a/src/triggers/upstream +++ b/src/triggers/upstream @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # manage local, gitolite-controlled, copies of read-only upstream repos.