holzschu / holzschu/a-shell

Shortcuts and Shell Command Exit Codes

Open
#226 11 comments 0 reactions 0 assignees View on GitHub
fix committed
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

Currently when I try to run a shell command from Shortcuts using a-Shell, it throws an error if the command's return code is nonzero. Would it be possible to alter this behaviour so that commands such as ping can be used? [Here's a simple shortcut to demonstrate the issue](https://www.icloud.com/shortcuts/73814786c9604029a09f06d974cbbfb2) - the shortcut stops because ping returns 2 and there's no way around this I can find.

What could be really helpful is to have options that control what the Execute Command action returns - command output, return code, or maybe even both as a dictionary.

Thank you!

(I've attempted to work around this by using Python, Lua, Perl, and wasm but they all failed in different ways… I can provide details if needed.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.