invoke bash via /usr/bin/env for portability

This commit is contained in:
Konstantin Schukraft 2014-07-02 09:41:37 +02:00
parent d437418b3c
commit e4290dfb32
5 changed files with 6 additions and 6 deletions

View 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`\)
echo Saved to \"$FILENAME\" \(`du -h $OUTPUT | cut -f1`\)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
tmp=/tmp/.git-effort
above='0'

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function show_contents {
test -f "$2" && echo "$1 gitignore: $2" && cat "$2"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
project=${PWD##*/}

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
while true; do
# Current branch