mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
update lsb_release to use hash instead of which
This commit is contained in:
parent
5d9580fbdd
commit
d096335d5f
1 changed files with 3 additions and 5 deletions
|
@ -64,11 +64,7 @@ If you think you received this message in error, you can post an issue on the Gi
|
|||
exit 1
|
||||
}
|
||||
|
||||
LSB_REL=$(which lsb_release)
|
||||
|
||||
if [[ -z $LSB_REL ]]; then
|
||||
noOS_Support
|
||||
else
|
||||
if hash lsb_release 2>/dev/null; then
|
||||
PLAT=$($LSB_REL -si)
|
||||
OSCN=$($LSB_REL -sc) # We want this to be trusty xenial or jessie
|
||||
|
||||
|
@ -87,6 +83,8 @@ else
|
|||
else
|
||||
noOS_Support
|
||||
fi
|
||||
else
|
||||
noOS_Support
|
||||
fi
|
||||
|
||||
echo "${PLAT}" > /tmp/DET_PLATFORM
|
||||
|
|
Loading…
Reference in a new issue