Open
Description
My old version of MacOS does not support the readlink -f
option. I do not know if newer versions of MacOS support this option.
$ bash -xv bin/create-links-in /usr/local/bin
#!/bin/sh
set -e
+ set -e
#set -x
TARGET_DIR=$1
+ TARGET_DIR=/usr/local/bin
BIN_DIR=`dirname $0`
dirname $0
++ dirname bin/create-links-in
+ BIN_DIR=bin
if [ -z "$TARGET_DIR" ]; then
echo "Please specify a target directory."
exit
fi
+ '[' -z /usr/local/bin ']'
ln -s $(readlink -f $BIN_DIR/perf-java-top) $TARGET_DIR
readlink -f $BIN_DIR/perf-java-top
++ readlink -f bin/perf-java-top
readlink: illegal option -- f
usage: readlink [-n] [file ...]
+ ln -s /usr/local/bin
ln: ./bin: File exists
Metadata
Metadata
Assignees
Labels
No labels