Skip to content

Commit 371f308

Browse files
committed
chore: Normalize arguments in shebangs
1 parent 9152af8 commit 371f308

7 files changed

+12
-9
lines changed

git-changebar

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh --
1+
#!/bin/sh
22
#
33
# git-changebar
44
#

git-clone.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
# this script clones a repository, including all its remote branches
44
# Author: julianromera

git-each

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash -e
1+
#!/bin/bash
2+
set -e
23

34
DIRS="."
45
if [[ "$1" == --dir ]]; then

git-rebase-master

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash -e
2-
1+
#!/bin/bash
2+
set -e
33
git checkout master
44
git pull --ff-only
55
git checkout -

git-rebranch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash -e
2-
1+
#!/bin/bash
2+
set -e
33
newbranch=$1
44
remote=${2:-origin/master}
55

git-root

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#!/bin/sh -e
1+
#!/bin/sh
22
# inspired by http://stackoverflow.com/questions/957928/is-there-a-way-to-get-to-the-git-root-directory-in-one-command/3009378#3009378
33
# gives absolute path to git repository root, either for cwd, or directory (or files' dirname) given as $1
44
# when not a git repository, exit >0
5+
set -e
56
if [ -n "$1" ]
67
then
78
if [ -d "$1" ]

git-trial-merge

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
#!/bin/sh -xe
1+
#!/bin/sh
2+
set -xe
23
git checkout --detach HEAD
34
git merge --no-edit -- "$@"

0 commit comments

Comments
 (0)