[issue606] install-packages-{office, useful}: More compatibility to dash(1).
Frank Terbeck
bts at bts.grml.org
Sat Jan 31 16:45:10 CET 2009
Frank Terbeck <ft at grml.org> added the comment:
Alexander Steinböck <bts at bts.grml.org>:
> > As per susv3, id only needs to support short options like '-u'.
> > '--user' is a GNU extension. IOW: if you want to enhance
> > portability, stick to sus.
> Thanks for the hint.
> And done.
[...]
> -if [ $UID != 0 ]; then
> +if [ $(id -u) -ne 0 ]; then
[...]
> - exit -1
> + exit 1
[...]
> -if [[ $1 == '-force' ]]; then
> +if [ $1 = '-force' ]; then
[...]
> -if [ $UID != 0 ]; then
> +if [ $(id -u) -ne 0 ]; then
[...]
> - exit -1
> + exit 1
[...]
> -if [[ $1 == '-force' ]]; then
> +if [ $1 = '-force' ]; then
ACK.
----------
files: 0001-install-packages-office-useful-Enhancing-dash-1.patch
messages: 1785, 1787, 1788, 1789
nosy: ft, mika, z3ttacht
priority: bug
status: chatting
title: install-packages-{office,useful}: More compatibility to dash(1).
topic: grml2hd
_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue606>
_____________________________________
More information about the Bugs-changes
mailing list