1
0
Fork 0
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:
Shane Kilkelly 2020-06-12 10:53:38 +01:00
parent e6de621013
commit 87318f525a

View file

@ -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