Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Fix installation of phantomjs #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coursebuilder/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ if need_install phantomjs ChangeLog Version 2.1.0 test ; then
elif [[ $OSTYPE == darwin* ]] ; then
download_and_unpack \
$CB_ARCHIVE_LIB_URL/phantomjs-2.1.1-macosx.zip \
"$RUNTIME_HOME/phantomjs"
"$RUNTIME_HOME"
rm -rf "$RUNTIME_HOME/phantomjs"
mv "$RUNTIME_HOME/phantomjs-2.1.1-macos" "$RUNTIME_HOME/phantomjs"
mv "$RUNTIME_HOME/phantomjs-2.1.1-macosx" "$RUNTIME_HOME/phantomjs"
else
echo "Target OS '$OSTYPE' must start with 'linux' or 'darwin'."
exit -1
Expand Down