From 63dd6516f1772dc214cfe91b95edf696a3f8285e Mon Sep 17 00:00:00 2001 From: Bishoy Ehab Date: Fri, 23 Jan 2026 21:35:34 +0200 Subject: [PATCH] fix(exp-update): use fd 9 for file loop to prevent stdin conflict with inner interactive commands --- sdata/subcmd-exp-update/0.run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdata/subcmd-exp-update/0.run.sh b/sdata/subcmd-exp-update/0.run.sh index f31a19283..a4bc8022b 100644 --- a/sdata/subcmd-exp-update/0.run.sh +++ b/sdata/subcmd-exp-update/0.run.sh @@ -1053,7 +1053,7 @@ if [[ "$process_files" == true ]]; then ensure_directory "$home_dir_path" || continue - while IFS= read -r -d '' repo_file; do + while IFS= read -r -d '' -u 9 repo_file; do # Calculate relative path from the repo source directory rel_path="${repo_file#$repo_dir_path/}" home_file="${home_dir_path}/${rel_path}" @@ -1107,7 +1107,7 @@ if [[ "$process_files" == true ]]; then fi ((files_created++)) fi - done < <(get_changed_files "$repo_dir_path") || true + done 9< <(get_changed_files "$repo_dir_path") || true echo done