mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 07:18:06 +02:00
Handle error in backup-config script
This commit is contained in:
parent
4b76232131
commit
c317e14081
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ function __main__() {
|
|||
zip -r "$destination" config
|
||||
elif [[ "$mode" == "tar" ]]; then
|
||||
tar -cf "$destination" config/*
|
||||
else
|
||||
echo "Error: unrecognized mode '$mode'"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue