Skip to content

Commit

Permalink
replaced cat with i/o redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
stark authored and tombh committed Oct 26, 2018
1 parent 6c9e4be commit 77211ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interfacer/contrib/build_browsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dep ensure

# Get the current Browsh version, in order to find the corresponding web extension release
version_file=$INTERFACER_ROOT/src/browsh/version.go
line=$(cat $version_file | grep 'browshVersion')
line=$(grep 'browshVersion' < $version_file)
version=$(echo $line | grep -o '".*"' | sed 's/"//g')

# Build the URI for the webextension file
Expand Down
2 changes: 1 addition & 1 deletion interfacer/contrib/get_browsh_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e

PROJECT_ROOT=$(git rev-parse --show-toplevel)
version_file=$PROJECT_ROOT/interfacer/src/browsh/version.go
line=$(cat $version_file | grep 'browshVersion')
line=$(grep 'browshVersion' < $version_file)
version=$(echo $line | grep -o '".*"' | sed 's/"//g')
echo -n $version
2 changes: 1 addition & 1 deletion interfacer/contrib/setup_firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else
PROJECT_ROOT=.
fi

line=$(cat $PROJECT_ROOT/.travis.yml | grep 'firefox: "')
line=$(grep 'firefox: "' < $PROJECT_ROOT/.travis.yml)
version=$(echo $line | grep -o '".*"' | cut -d " " -f 1 | sed 's/"//g')

# Firefox is needed both for testing in Travis and embedding in the Docker
Expand Down

0 comments on commit 77211ed

Please sign in to comment.