Skip to content

Commit

Permalink
Fix in update_shebang.sh script: fix installation process when dash b…
Browse files Browse the repository at this point in the history
…inary is missing
  • Loading branch information
DarkCaster committed Aug 26, 2017
1 parent f2467a8 commit 7963aa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions update_shebang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bash_bin=`2>/dev/null which bash`
dash_bin=`2>/dev/null which dash`

[[ -z $bash_bin ]] && exit 0
[[ -z $dash_bin ]] && dash_bin="#!/bin/sh"
[[ -z $dash_bin ]] && dash_bin="/bin/sh"

shebang=`head -n1 "$target"`

Expand All @@ -25,4 +25,3 @@ fi

echo "Updating shebang to \"$result\" for file: $target"
sed -i '1s|.*|'"$result"'|' "$target"

0 comments on commit 7963aa3

Please sign in to comment.