mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Ensure stored GUID has value during install.
This commit is contained in:
parent
04e665aec4
commit
350a736a10
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user