mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #229 from yggdr/master
/usr/bin/env for portability.
This commit is contained in:
commit
a87403b57f
|
|
@ -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