Skip to content

Commit

Permalink
Fix shebangs and executable flags (related to #124)
Browse files Browse the repository at this point in the history
Files that are executable now all have the /usr/bin/env type shebang,
while all files that should only be source from other files have the /bin/bash shebang
  • Loading branch information
andsens committed Nov 11, 2014
1 parent 378960a commit 4c205c9
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 12 deletions.
Empty file modified lib/commands/help.sh
100755 → 100644
Empty file.
Empty file modified lib/commands/link.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion lib/submodule_files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script is meant to be used in conjunction with
# `git submodule foreach'.
# It runs outputs all files tracked by a submodule.
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/135.abc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/dotfiles.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/module-files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/nested-submodules.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/nodirs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/rc-files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/repo with spaces in name.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/submodule-outside-home.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/symlinks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(
local git_username="Homeshick user"
local git_useremail="homeshick@example.com"
Expand Down
2 changes: 1 addition & 1 deletion test/helper.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash

function export_env_vars {
if [[ -n $BATS_TEST_DIRNAME ]]; then
Expand Down
2 changes: 1 addition & 1 deletion test/setup-default.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.bashrc
cat > $HOME/.bashrc <<EOF
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
Expand Down

0 comments on commit 4c205c9

Please sign in to comment.