diff --git a/assets/functions/tools/fs_cat.sh b/assets/functions/tools/fs_cat.sh index 9d898e5..84713e0 100755 --- a/assets/functions/tools/fs_cat.sh +++ b/assets/functions/tools/fs_cat.sh @@ -10,5 +10,5 @@ set -e main() { # shellcheck disable=SC2154 - cat "$argc_path" >> "$LLM_OUTPUT" + cat "$argc_path" >> "$LLM_OUTPUT" 2>&1 || echo "No such file or path: $argc_path" >> "$LLM_OUTPUT" } \ No newline at end of file diff --git a/assets/functions/tools/fs_ls.sh b/assets/functions/tools/fs_ls.sh index 236c15c..65f0e12 100755 --- a/assets/functions/tools/fs_ls.sh +++ b/assets/functions/tools/fs_ls.sh @@ -9,5 +9,5 @@ set -e main() { # shellcheck disable=SC2154 - ls -1 "$argc_path" >> "$LLM_OUTPUT" + ls -1 "$argc_path" >> "$LLM_OUTPUT" 2>&1 || echo "No such path: $argc_path" >> "$LLM_OUTPUT" } \ No newline at end of file