Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 137e059

Browse files
authored
Update db_dump.sh
1 parent 04ab0a5 commit 137e059

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎DBA/db_dump.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# https://habr.com/ru/company/ruvds/blog/325522/ - Bash documentation
33

44
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
5+
# set -e - прекращает выполнение скрипта, если команда завершилась ошибкой
6+
# set -u - прекращает выполнение скрипта, если встретилась несуществующая переменная
7+
# set -x - выводит выполняемые команды в stdout перед выполнением (только для отладки, а то замусоривает журнал!)
8+
# set -o pipefail - прекращает выполнение скрипта, даже если одна из частей пайпа завершилась ошибкой
59
set -euo pipefail
610

711
SCRIPT_FILE=$(readlink -f "0ドル")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /