Skip to content

Commit

Permalink
ncp-config: fix first time error with no known latest version
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Oct 4, 2021
1 parent 05f0d35 commit 714c3e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/ncp-config
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ BINDIR=/usr/local/bin/ncp

source /usr/local/etc/library.sh
{
latest_ver="$(cat /var/run/.ncp-latest-version)"
ncpversion="$(cat /usr/local/etc/ncp-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" ]] && changelog=$( head -4 "$chlogfile" )

latest_ver="$(cat /var/run/.ncp-latest-version 2>/dev/null)"
whiptail --backtitle "$backtitle $ncpversion" \
--title "NextCloudPi update available" \
--clear --yesno "Update to $latest_ver?\n\n$changelog" \
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.39.19](https://github.com/nextcloud/nextcloudpi/commit/92bec43) (2021-09-30) ncp-web: fix upload from local file path
[v1.39.20](https://github.com/nextcloud/nextcloudpi/commit/7188050) (2021-10-04) ncp-config: fix first time error with no known latest version

[v1.39.19](https://github.com/nextcloud/nextcloudpi/commit/05f0d35) (2021-09-30) ncp-web: fix upload from local file path

[v1.39.18](https://github.com/nextcloud/nextcloudpi/commit/f1c90f5) (2021-09-30) nc-httpsonly: always use overwriteprotocol https in all cases

Expand Down

0 comments on commit 714c3e5

Please sign in to comment.