Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
1d8bb71e
Commit
1d8bb71e
authored
Mar 03, 2014
by
Mikhail Glushenkov
Browse files
It's OK to use 'which' in 'bootstrap.sh'.
parent
58bd4fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/bootstrap.sh
View file @
1d8bb71e
...
...
@@ -39,8 +39,7 @@ DEFAULT_PREFIX="${HOME}/.cabal"
done
# None found.
# `command command -v` is ugly, but `which` is non-standard (see man 1 which).
[
!
-x
"
$(
command command
-v
"
$CC
"
)
"
]
&&
[
!
-x
`
which
"
$CC
"
`
]
&&
die
"C compiler not found (or could not be run).
If a C compiler is installed make sure it is on your PATH,
or set the CC variable."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment