99-alternatives 239 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh -efu

[ -n "$GLOBAL_ALTERNATIVES" ] || exit 0
for alternative in $GLOBAL_ALTERNATIVES; do
	candidate="${alternative#*:}"
	alternative="${alternative%:*}"
	alternatives-manual "$alternative" "$candidate"
done

alternatives-update