Skip to content

Commit

Permalink
Resolved problem with var ostype
Browse files Browse the repository at this point in the history
  • Loading branch information
SalimHouari committed Nov 15, 2018
1 parent 6bc8d86 commit c4c22d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file.bash
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ assert_symlink_to() {
local -r sourcefile="$1"
local -r link="$2"
# If OS is linux
if [[ "$OSTYPE" == "linux-gnu" ]]; then
if [[ `uname` == "Linux" ]]; then
if [ ! -L $link ]; then
local -r rem="$BATSLIB_FILE_PATH_REM"
local -r add="$BATSLIB_FILE_PATH_ADD"
Expand All @@ -301,7 +301,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
| fail
fi
# If OS is OSX
elif [[ "$OSTYPE" == "darwin"* ]]; then
elif [[ `uname` == "Darwin" ]]; then

function readlinkf() {
TARGET_FILE=$1
Expand Down

0 comments on commit c4c22d7

Please sign in to comment.