Avoid error if noded version doesn't work

This commit is contained in:
Joshua Boniface 2024-10-29 11:32:14 -04:00
parent 662083d87e
commit cbb2352b01
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )"
VERSION_ID="$( cat /etc/debian_version )" VERSION_ID="$( cat /etc/debian_version )"
VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )" VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )"
DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\"" DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\""
PVCVER="$( /usr/share/pvc/pvcnoded.py --version )" PVCVER="$( /usr/share/pvc/pvcnoded.py --version || echo 'Unknown' )"
echo >> $TMPFILE echo >> $TMPFILE
echo -e "\033[01;34mParallel Virtual Cluster (PVC) Node\033[0m" >> $TMPFILE echo -e "\033[01;34mParallel Virtual Cluster (PVC) Node\033[0m" >> $TMPFILE