Skip to content

Commit

Permalink
Fix unzip usage on bsd (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin authored and tkelman committed Feb 22, 2017
1 parent 461c08f commit 4654b03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BinDeps.jl
Expand Up @@ -91,7 +91,11 @@ if is_unix()
elseif extension == ".tar"
return (`tar xf $file --directory=$directory`)
elseif extension == ".zip"
return (`unzip -x $file -d $directory`)
@static if is_bsd() && !is_apple()
return (`unzip -x $file -d $directory $file`)
else
return (`unzip -x $file -d $directory`)
end
elseif extension == ".gz"
return pipeline(`mkdir $directory`, `cp $file $directory`, `gzip -d $directory/$file`)
end
Expand Down

0 comments on commit 4654b03

Please sign in to comment.