-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for update script + SD card size + uptime
- Loading branch information
Showing
5 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#! /bin/bash | ||
|
||
# ################################################################################# | ||
# | ||
# WebIndoor system script | ||
# check for autoupdate | ||
# | ||
# ################################################################################# | ||
|
||
|
||
## working repository | ||
if [ -z "$1" ]; then | ||
REPO="inoteska" | ||
else | ||
REPO="$1" | ||
fi | ||
|
||
|
||
## working dir | ||
cd /root/app | ||
|
||
|
||
VER_LOCAL=`git log -1 | grep commit | awk '{print $2}'` | ||
VER_REMOTE=`git ls-remote https://github.com/$REPO/indoorjs.git | grep HEAD | cut -f 1` | ||
|
||
if [ "$VER_LOCAL" == "$VER_REMOTE" ] | ||
then | ||
|
||
echo "equal" | ||
|
||
else | ||
|
||
echo "different" | ||
|
||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters