From e4290dfb32cd70a2c4a5eb58d16dd48f0dbc3068 Mon Sep 17 00:00:00 2001 From: Konstantin Schukraft Date: Wed, 2 Jul 2014 09:41:37 +0200 Subject: [PATCH] invoke bash via /usr/bin/env for portability --- bin/git-archive-file | 4 ++-- bin/git-effort | 2 +- bin/git-ignore | 2 +- bin/git-line-summary | 2 +- bin/git-repl | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/git-archive-file b/bin/git-archive-file index e9dca7d..cf0d0f0 100755 --- a/bin/git-archive-file +++ b/bin/git-archive-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # extract current branch name BRANCH=$(git name-rev HEAD 2> /dev/null | awk "{ print \$2 }") @@ -31,4 +31,4 @@ OUTPUT=$(pwd)/$FILENAME git archive --format zip --output $OUTPUT $BRANCH # also display size of the resulting file -echo Saved to \"$FILENAME\" \(`du -h $OUTPUT | cut -f1`\) \ No newline at end of file +echo Saved to \"$FILENAME\" \(`du -h $OUTPUT | cut -f1`\) diff --git a/bin/git-effort b/bin/git-effort index 6023620..5b82c20 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash tmp=/tmp/.git-effort above='0' diff --git a/bin/git-ignore b/bin/git-ignore index dac8113..a563afe 100755 --- a/bin/git-ignore +++ b/bin/git-ignore @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function show_contents { test -f "$2" && echo "$1 gitignore: $2" && cat "$2" diff --git a/bin/git-line-summary b/bin/git-line-summary index 95051fe..f441ccd 100755 --- a/bin/git-line-summary +++ b/bin/git-line-summary @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash project=${PWD##*/} diff --git a/bin/git-repl b/bin/git-repl index 90f2fcc..eae33a5 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while true; do # Current branch