Skip to content

Commit

Permalink
ncp-config: fix local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
necopinus authored and nachoparker committed Jan 25, 2019
1 parent b338ede commit ffc1fa5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/ncp-config
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit ffc1fa5

Please sign in to comment.