Skip to content

Commit

Permalink
Ada --rmxattr: allow only a single attribute at a time, not a list. F…
Browse files Browse the repository at this point in the history
…ixes #49
  • Loading branch information
onnozweers committed Jan 29, 2025
1 parent d7bb536 commit 6c8fcc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ada/ada
Original file line number Diff line number Diff line change
Expand Up @@ -2160,8 +2160,9 @@ api_call () {
exit 1
;;
* )
# User specified which attribute(s) must be removed.
names_json=$(echo "$attribute_name" | jq -R 'split(",")')
# User specified which attribute must be removed.
# dCache expects a list, but Ada supports only a single item at a time (or --all).
names_json=$(jq -n --compact-output --arg name "$attribute_name" '[$name]')
;;
esac
(
Expand Down

0 comments on commit 6c8fcc6

Please sign in to comment.