Skip to content

Commit

Permalink
updated scripts to work with more recent MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pruemmer committed Aug 26, 2024
1 parent e7dd48d commit b510111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions eld
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/sh

if [ $(uname) = "Linux" ]; then
if [ $(uname) = "Linux" -o $(uname) = "Darwin" ]; then
pathCmd="readlink -f"
elif [ $(uname) = "Darwin" ]; then
pathCmd="stat -f %N"
else
pathCmd="realpath"
fi
Expand Down
4 changes: 1 addition & 3 deletions eld-client
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ dotfilebase="/tmp/.lazabs"
me=`whoami`
portfile="$dotfilebase"_"$me"

if [ $(uname) = "Linux" ]; then
if [ $(uname) = "Linux" -o $(uname) = "Darwin" ]; then
pathCmd="readlink -f"
elif [ $(uname) = "Darwin" ]; then
pathCmd="stat -f %N"
else
pathCmd="realpath"
fi
Expand Down

0 comments on commit b510111

Please sign in to comment.