mirror of
https://github.com/samsonjs/csc360-a1-shell.git
synced 2026-03-25 08:45:52 +00:00
Make dependency-dir work with sh
This commit is contained in:
parent
421f3f981e
commit
fe3e6cc099
1 changed files with 4 additions and 4 deletions
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [[ $(uname -s) = Darwin ]]; then
|
||||
if [ $(uname -s) = Darwin ]; then
|
||||
if command -v brew >/dev/null 2>/dev/null; then
|
||||
echo $(brew --prefix)/opt
|
||||
elif [[ -x /opt/homebrew/bin/brew ]]; then
|
||||
elif [ -x /opt/homebrew/bin/brew ]; then
|
||||
echo $(/opt/homebrew/bin/brew -- prefix)/opt
|
||||
elif [[ -x $HOME/homebrew/bin/brew ]]; then
|
||||
elif [ -x $HOME/homebrew/bin/brew ]; then
|
||||
echo $($HOME/homebrew/bin/brew --prefix)/opt
|
||||
elif [[ -x /usr/local/bin/brew ]]; then
|
||||
elif [ -x /usr/local/bin/brew ]; then
|
||||
echo $(/usr/local/bin/brew --prefix)/opt
|
||||
else
|
||||
echo /usr/local
|
||||
|
|
|
|||
Loading…
Reference in a new issue