Fix rad proxy script

This commit is contained in:
Erik Kundt
2024-07-09 09:56:14 +02:00
parent bc2378e18a
commit 4af18a47f8
2 changed files with 10 additions and 1 deletions
+4
View File
@@ -38,6 +38,10 @@
- Page size attribute from scrollable widgets
- Cutoff and footer attributes from table properties
### Fixed
- Broken positional argument passing in `rad.sh` proxy script
## [0.3.1] - 2024-06-11
### Added
+6 -1
View File
@@ -26,6 +26,9 @@ if [[ "$1" == "patch" ]] || [[ "$1" == "issue" ]] || [[ "$1" == "inbox" ]]; then
op=$(extract_operation $out)
id=$(extract_id $out)
echo $op
echo $id
rad $1 $op $id
else
# Run TUI
@@ -33,7 +36,9 @@ if [[ "$1" == "patch" ]] || [[ "$1" == "issue" ]] || [[ "$1" == "inbox" ]]; then
{ out=$(rad-tui $1 select $args 2>&1 >&3 3>&-); } 3>&1
id=$(extract_id $out)
rad $1 $2 $id
args=("$@")
rad $1 $2 $id ${args[@]:2}
fi
else
rad $@