common: fix exit status of uname wrapper
This commit is contained in:
parent
ae14915b51
commit
c1fa95a097
1 changed files with 1 additions and 1 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
uname=$(/usr/bin/uname $@)
|
||||
rv=$?
|
||||
uname_m=$(/usr/bin/uname -m)
|
||||
arch=${XBPS_ARCH%-musl}
|
||||
# if XBPS_ARCH was reseted by `env -i` use original `/usr/bin/uname -m`
|
||||
: ${arch:=$uname_m}
|
||||
rv=$?
|
||||
echo "$uname" |
|
||||
sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/" |
|
||||
sed "s/$uname_m/$arch/"
|
||||
|
|
Loading…
Reference in a new issue