mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 22:57:11 -04:00
Remove optimist dependency. Add help text with options
This commit is contained in:
parent
102318497d
commit
f409914ff2
6 changed files with 68 additions and 12 deletions
12
bin/run.sh
12
bin/run.sh
|
@ -20,10 +20,18 @@ if [ "$(id -u)" -eq 0 ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
prep=1
|
||||
#If merely looking for help, don't prep the environment
|
||||
for arg in $*; do
|
||||
if [ "$arg" = "--help" ] || [ "$arg" = "-h" ]; then prep=0; fi
|
||||
done
|
||||
|
||||
#prepare the enviroment
|
||||
bin/installDeps.sh $* || exit 1
|
||||
if [ $prep -eq 1 ]; then
|
||||
bin/installDeps.sh $* || exit 1
|
||||
echo "start..."
|
||||
fi
|
||||
|
||||
#Move to the node folder and start
|
||||
echo "start..."
|
||||
cd "node"
|
||||
node server.js $*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue