cdist/cdist/conf/type/__update_alternatives/explorer/alternatives

5 lines
135 B
Bash
Executable File

#!/bin/sh -e
LC_ALL=C update-alternatives --display "${__object_id:?}" 2>/dev/null \
| awk -F ' - ' '/priority [0-9]+$/ { print $1 }'