Ensure stored GUID has value during install.

This commit is contained in:
Jared Goodwin 2021-05-14 07:35:23 -07:00
parent 04e665aec4
commit 350a736a10
4 changed files with 16 additions and 4 deletions

View File

@ -37,7 +37,10 @@ su - $SUDO_USER -c "brew install jq"
if [ -f "/usr/local/bin/Remotely/ConnectionInfo.json" ]; then
GUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
SavedGUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
if [ -z "$SavedGUID" ]; then
GUID="$SavedGUID"
fi
fi
rm -r -f /Applications/Remotely

View File

@ -37,7 +37,10 @@ su - $SUDO_USER -c "brew install jq"
if [ -f "/usr/local/bin/Remotely/ConnectionInfo.json" ]; then
GUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
SavedGUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
if [ -z "$SavedGUID" ]; then
GUID="$SavedGUID"
fi
fi
rm -r -f /Applications/Remotely

View File

@ -33,7 +33,10 @@ pacman -S jq --noconfirm
pacman -S curl --noconfirm
if [ -f "/usr/local/bin/Remotely/ConnectionInfo.json" ]; then
GUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
SavedGUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
if [ -z "$SavedGUID" ]; then
GUID="$SavedGUID"
fi
fi
rm -r -f /usr/local/bin/Remotely

View File

@ -43,7 +43,10 @@ apt-get -y install curl
if [ -f "/usr/local/bin/Remotely/ConnectionInfo.json" ]; then
GUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
SavedGUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
if [ -z "$SavedGUID" ]; then
GUID="$SavedGUID"
fi
fi
rm -r -f /usr/local/bin/Remotely