mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 07:56:18 -04:00
invoke bash via /usr/bin/env for portability
This commit is contained in:
parent
d437418b3c
commit
e4290dfb32
|
|
@ -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`\)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
tmp=/tmp/.git-effort
|
||||
above='0'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function show_contents {
|
||||
test -f "$2" && echo "$1 gitignore: $2" && cat "$2"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
project=${PWD##*/}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true; do
|
||||
# Current branch
|
||||
|
|
|
|||
Loading…
Reference in a new issue