Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-08-31 09:45:56 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-02 00:32:16 +0300
commit009c82e6cfb82cc40c49a9e253fe41bbbf779b13 (patch)
tree8213b20f68cfbe2941013eef540ec95a379bfb02 /bin/ncp-update
parentcfc759969a9f0afdde35689e7185d49533e6c78f (diff)
shellcheck style fixesv0.24.12
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-xbin/ncp-update8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ncp-update b/bin/ncp-update
index 32bcd2d8..615595f0 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -3,7 +3,7 @@
# update latest NextCloudPi code from github
{
- [ $(id -u) -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }
+ [ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
echo -e "Downloading updates"
rm -rf /tmp/ncp-update-tmp
@@ -14,9 +14,9 @@
./update.sh
VER=$( git describe --always --tags | grep -oP "v\d+\.\d+\.\d+" )
- grep -qP "v\d+\.\d+\.\d+" <<< $VER && { # check format
- echo $VER > /usr/local/etc/ncp-version
- echo $VER > /var/run/.ncp-latest-version
+ grep -qP "v\d+\.\d+\.\d+" <<< "$VER" && { # check format
+ echo "$VER" > /usr/local/etc/ncp-version
+ echo "$VER" > /var/run/.ncp-latest-version
}
cd /