ncp-config: fix local variables

This commit is contained in:
Nathan Acks 2019-01-25 16:48:26 -07:00 committed by nachoparker
parent b338ede59f
commit ffc1fa50ea
2 changed files with 7 additions and 5 deletions

View File

@ -15,12 +15,12 @@ BINDIR=/usr/local/bin/ncp
source /usr/local/etc/library.sh
{
local latest_ver="$(cat /var/run/.ncp-latest-version)"
local ncpversion="$(cat /usr/local/etc/ncp-version )"
local chlogfile=/usr/local/etc/ncp-changelog
latest_ver="$(cat /var/run/.ncp-latest-version)"
ncpversion="$(cat /usr/local/etc/ncp-version )"
chlogfile=/usr/local/etc/ncp-changelog
# ask for update if outdated
ncp-test-updates 2>/dev/null && {
[[ -f "$chlogfile" ]] && local changelog=$( head -4 "$chlogfile" )
[[ -f "$chlogfile" ]] && changelog=$( head -4 "$chlogfile" )
whiptail --backtitle "$backtitle $ncpversion" \
--title "NextCloudPi update available" \

View File

@ -1,5 +1,7 @@
[v1.4.6](https://github.com/nextcloud/nextcloudpi/commit/d1a3e18) (2019-01-24) ncp-config: fix missing variable
[v1.4.7](https://github.com/nextcloud/nextcloudpi/commit/5d6dd2e) (2019-01-25) ncp-config: fix local variables
[v1.4.6](https://github.com/nextcloud/nextcloudpi/commit/b338ede) (2019-01-24) ncp-config: fix missing variable
[v1.4.5 ](https://github.com/nextcloud/nextcloudpi/commit/b7efa7a) (2019-01-22) armbian: fix cron permissions bug (2)