mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 23:38:06 +02:00
Better handling of 'help' in logs command
This commit is contained in:
parent
e6de621013
commit
87318f525a
1 changed files with 6 additions and 5 deletions
11
bin/logs
11
bin/logs
|
@ -32,11 +32,6 @@ function __main__() {
|
|||
LINES="$DEFAULT_LINES"
|
||||
FOLLOW_FLAG=""
|
||||
|
||||
if [[ "${1:-null}" == "help" ]] || [[ "${1:-null}" == "--help" ]]; then
|
||||
usage
|
||||
exit
|
||||
fi
|
||||
|
||||
while getopts "fn:" opt
|
||||
do
|
||||
case $opt in
|
||||
|
@ -47,6 +42,12 @@ function __main__() {
|
|||
done
|
||||
shift $(( OPTIND -1 ))
|
||||
|
||||
if [[ "${1:-null}" == "null" ]] \
|
||||
|| [[ "${1:-null}" == "help" ]] \
|
||||
|| [[ "${1:-null}" == "--help" ]] ; then
|
||||
usage && exit
|
||||
fi
|
||||
|
||||
log_base_path="/var/log/sharelatex"
|
||||
|
||||
declare -a services
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue