Michael Siegel
|
93dd56b3f0
scripts: Use `_env_checks`
|
3 years ago |
Michael Siegel
|
34aaa8e312
`delpage`: Replace `exit 1` with `_abort` where appropriate
|
3 years ago |
Michael Siegel
|
4896c64c53
`delpage`: Use Bash's built-in FUNCNAME variable
|
3 years ago |
Michael Siegel
|
b322992784
`delpage`: Refine identifier names
|
3 years ago |
Michael Siegel
|
1d228dadf6
Use a dedicated function to ask for confirmation of the deletion target
|
3 years ago |
Michael Siegel
|
d1094320db
`delpage`: `_del_page`: Back out if `$del_target` is empty
|
3 years ago |
Michael Siegel
|
c9c46140e7
`delpage`: Whitespace clean-up
|
3 years ago |
Michael Siegel
|
329aa98b12
`delpage`: Minor adjustments
|
3 years ago |
Michael Siegel
|
8512aa1d84
`delpage`: Make sure numeric selection corresponds to an existing page
|
3 years ago |
Michael Siegel
|
e163271f8b
`delpage`: `_del_page_nav`: Improve error handling
|
3 years ago |
Michael Siegel
|
1dd0c88b17
`delpage`: `_del_page`: Explicitly state that a page was removed
|
3 years ago |
Michael Siegel
|
3cbf3b5c66
`delpage`: Explicitly `exit 1` on error in `_del_page`
|
3 years ago |
Michael Siegel
|
e8f139f216
`delpage`: `_del_page`: Implement error handling for `cp` and `sed` calls
|
3 years ago |
Michael Siegel
|
3fef1a7731
`delpage`: `_del_page`: Simply return 1 when selection is not confirmed
|
3 years ago |
Michael Siegel
|
d72020322d
Cut some slashes
|
3 years ago |
Michael Siegel
|
0cc8802db4
Make use of `_probe_dirs_files` in `addpage` and `delpage` as well
|
3 years ago |
Michael Siegel
|
1f6eb1e6ea
Revise error handling
|
3 years ago |
Michael Siegel
|
6d5d243b57
Make `_show_pagetree` show an actual tree
|
3 years ago |
Michael Siegel
|
a3e0fcacbb
Move `_show_pagetree` to `subroutines`
|
3 years ago |
Michael Siegel
|
a7bd7e1c76
`delpage`: Use `_get_pagetree` instead of `PAGE_TREE` constant
|
3 years ago |
Michael Siegel
|
2586ebfbcc
Use `_command_is_gnu`
|
3 years ago |
Michael Siegel
|
0b2372b33a
Adjust invocations of `_command_available`
|
3 years ago |
Michael Siegel
|
8c90325b3f
Rename `_probe_toolbox` `_command_available`
|
3 years ago |
Michael Siegel
|
cb20f5ea84
`delpage`: Improve handling of loop variables
|
3 years ago |
Michael Siegel
|
fadb9270a0
`delpage`: Don't remove items from site navigation unconditionally
|
3 years ago |
Michael Siegel
|
98b2a3277c
Remove `_get_lang_dirs` from scripts
|
3 years ago |
Michael Siegel
|
0df0368373
`delpage`: Correct script name in header comment
|
3 years ago |
Michael Siegel
|
e697375c71
`delpage`: Remove obsolete global parameters
|
3 years ago |
Michael Siegel
|
d8b6651dd2
`delpage`: Make `_del_page` less dangerous and more informative
|
3 years ago |
Michael Siegel
|
0e67c7129b
`delpage`: Remove `_probe_pagedir`
|
3 years ago |