fix: always use system home directory (#303)
This commit was merged in pull request #303.
This commit is contained in:
@@ -106,7 +106,7 @@ function create_example_shell_command() {
|
||||
backup_klipper_config_dir
|
||||
|
||||
local configs regex path
|
||||
regex="\/home\/${USER}\/([A-Za-z0-9_]+)\/config\/printer\.cfg"
|
||||
regex="${HOME//\//\\/}\/([A-Za-z0-9_]+)\/config\/printer\.cfg"
|
||||
configs=$(find "${HOME}" -maxdepth 3 -regextype posix-extended -regex "${regex}" | sort)
|
||||
|
||||
for cfg in ${configs}; do
|
||||
|
||||
Reference in New Issue
Block a user