docs: do not ask when generating redirects
We have git to back us up.
This commit is contained in:
parent
6f74d4c56c
commit
3a5186942f
1 changed files with 0 additions and 3 deletions
|
|
@ -310,9 +310,6 @@
|
|||
[[ -f result/redirects.json ]] || { echo "Error: Generated redirects file not found" >&2; exit 1; }
|
||||
|
||||
echo "Generated $(jq 'keys | length' result/redirects.json) redirects"
|
||||
echo
|
||||
read -p "Update docs/redirects.json? This will backup the current file [y/N] " -r response
|
||||
[[ "$response" =~ ^[Yy] ]] || { echo "Aborted - no changes made"; exit 0; }
|
||||
|
||||
[[ -f docs/redirects.json ]] && cp docs/redirects.json docs/redirects.json.backup && echo "Created backup"
|
||||
cp result/redirects.json docs/redirects.json
|
||||
|
|
|
|||
Loading…
Reference in a new issue