lsb_release: add support for condensed options
Some programs seem to expect lsb_release to also support condensed (short) options like "-sirc". Closes #3255
This commit is contained in:
parent
a6a3a6eeee
commit
a48f9d61a0
2 changed files with 18 additions and 1 deletions
|
@ -47,6 +47,23 @@ OPTIONS
|
|||
−h, −−help
|
||||
Display this message.
|
||||
_EOF
|
||||
;;
|
||||
-*) # Multiple options in one parameter
|
||||
opt=$(echo $1 | cut -c2-)
|
||||
while [ ! -z "$opt" ]; do
|
||||
o=$(echo $opt | cut -c1)
|
||||
case "$o" in
|
||||
v) options="${options} version" ;;
|
||||
i) options="${options} distributor_id" ;;
|
||||
d) options="${options} description" ;;
|
||||
r) options="${options} release" ;;
|
||||
c) options="${options} codename" ;;
|
||||
a) options="version distributor_id description release codename" ;;
|
||||
s) short=1 ;;
|
||||
esac
|
||||
opt=$(echo $opt | cut -c2-)
|
||||
done
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'base-files'
|
||||
pkgname=base-files
|
||||
version=0.137
|
||||
version=0.138
|
||||
revision=1
|
||||
bootstrap=yes
|
||||
depends="xbps-triggers"
|
||||
|
|
Loading…
Reference in a new issue