Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 78d92fb

Browse files
author
Gershom
committed
fix activate-hs for mac to not stomp cabal
1 parent 1ea8202 commit 78d92fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hptool/os-extras/osx/bin/activate-hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,14 @@ symLinkInto() {
256256
###
257257
### Fix up bits in platform tree
258258
###
259-
260259
if [ -d "$hpRoot" ] ; then
261260
if [ -x $hpRoot/bin/cabal.wrap ]
262261
then
263-
run mv $hpRoot/bin/cabal $hpRoot/bin/cabal.real
264-
symLink cabal.wrap $hpRoot/bin/cabal
262+
if [ ! -e $hpRoot/bin/cabal.real ]
263+
then
264+
run mv $hpRoot/bin/cabal $hpRoot/bin/cabal.real
265+
symLink cabal.wrap $hpRoot/bin/cabal
266+
fi
265267
fi
266268

267269
symLink $ghcRoot/usr/share/doc/ghc/html $hpRoot/doc/ghc-doc

0 commit comments

Comments
 (0)