Skip to content

Commit

Permalink
fix print version nextcloudpi-config
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Apr 4, 2017
1 parent c6d85f5 commit 118fe4b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/nextcloudpi-config
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ function nextcloud-config()
{
local DIALOG_OK=0
local LIST=()
local VERSION=$( cat /usr/local/etc/ncp-version )
local VERFILE=/var/run/.ncp-latest-version
local BACKTITLE="NextCloudPi configuration ver. $VERSION"
local BACKTITLE="NextCloudPi configuration ver. "
local CONFDIR=/usr/local/etc/nextcloudpi-config.d/

# save latest version if it has never done before
test -f $VERFILE || ncp-check-version

# ask for update if outdated
ncp-test-updates && \
whiptail --backtitle "$BACKTITLE" \
whiptail --backtitle "$BACKTITLE $( cat /usr/local/etc/ncp-version )" \
--title "NextCloudPi update available" \
--clear --yesno "Update to $( cat $VERFILE )?" \
10 40
Expand All @@ -40,7 +39,7 @@ function nextcloud-config()
LIST+=( $( basename $item .sh ) "$DESC" )
done
local script
script=$( whiptail --backtitle "$BACKTITLE" \
script=$( whiptail --backtitle "$BACKTITLE $( cat /usr/local/etc/ncp-version )" \
--title "NextCloudPi Software Configuration Tool (nextcloudpi-config)" \
--cancel-button Finish --ok-button Select \
--menu "Select program to configure and activate:" 20 100 10 \
Expand Down

0 comments on commit 118fe4b

Please sign in to comment.