Browse Source

scripts: Use `_env_checks`

master
Michael Siegel 2 months ago
parent
commit
93dd56b3f0
  1. 4
      addlang
  2. 4
      addnews
  3. 4
      addpage
  4. 5
      build
  5. 4
      delpage

4
addlang

@ -165,9 +165,7 @@ fi
## Environment checks
_command_available $TOOLS $GNU_TOOLS || _abort
_command_is_gnu $GNU_TOOLS || _abort
_probe_dirs_files || _abort
_env_checks || _abort
## Action

4
addnews

@ -251,9 +251,7 @@ EOF
## Environment checks
_command_available $TOOLS $GNU_TOOLS || _abort
_command_is_gnu $GNU_TOOLS || _abort
_probe_dirs_files || _abort
_env_checks || _abort
## Action

4
addpage

@ -390,9 +390,7 @@ fi
## Environment checks
_command_available $TOOLS $GNU_TOOLS || _abort
_command_is_gnu $GNU_TOOLS || _abort
_probe_dirs_files || _abort
_env_checks || _abort
## Action

5
build

@ -481,10 +481,7 @@ _set_backpath() {
## Environment checks
_command_available $TOOLS $GNU_TOOLS || _abort
_command_is_gnu $GNU_TOOLS || _abort
_probe_dirs_files || { _cleanup; _abort; }
_env_checks || _abort
## Parse command-line arguments

4
delpage

@ -213,9 +213,7 @@ fi
## Environment checks
_command_available $TOOLS $GNU_TOOLS || _abort
_command_is_gnu $GNU_TOOLS || _abort
_probe_dirs_files || _abort
_env_checks || _abort
## Action

Loading…
Cancel
Save