Skip to content

Commit ac457b5

Browse files
committed
Better portability
Use env(1) to locate shell binary (see http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Portability).
1 parent 73cc606 commit ac457b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gittyup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
function capinstall {
44
if [ ! -x /var/lib/gems/1.8/bin/cap ]; then
@@ -117,4 +117,4 @@ echo "Committing: ${COMMENT}..."
117117
git commit -a -m "${COMMENT}" && git push origin
118118

119119
echo ""
120-
echo "Fixed: https://github.com/"`git config remote.origin.url`"/commit/"`git rev-parse HEAD`| sed -E s/[a-z]+@github\.com:// | sed 's#\.git##g'
120+
echo "Fixed: https://github.com/"`git config remote.origin.url`"/commit/"`git rev-parse HEAD`| sed -E s/[a-z]+@github\.com:// | sed 's#\.git##g'

0 commit comments

Comments
 (0)