You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have access to an OSX machine, so if someone could test this that would be great.
Author: Nick Lanham <nick@afternight.org>
Closes#258 from nicklan/osx-sed-fix and squashes the following commits:
a6f158f [Nick Lanham] Also make mktemp work on OSX
558fd6e [Nick Lanham] Make sed do -i '' on OSX
sed -i "s|export TACHYON_JAR=\$TACHYON_HOME/target/\(.*\)|# This is set for spark's make-distribution\n export TACHYON_JAR=\$TACHYON_HOME/../../jars/\1|""$DISTDIR/tachyon/libexec/tachyon-config.sh"
142
+
143
+
if [[ `uname -a`== Darwin* ]];then
144
+
# osx sed wants an empty argument to -i option of sed
145
+
TACHYON_SED="sed -i ''"
146
+
else
147
+
TACHYON_SED="sed -i"
148
+
fi
149
+
$TACHYON_SED -e "s|export TACHYON_JAR=\$TACHYON_HOME/target/\(.*\)|# This is set for spark's make-distribution\n export TACHYON_JAR=\$TACHYON_HOME/../../jars/\1|""$DISTDIR/tachyon/libexec/tachyon-config.sh"
0 commit comments