Skip to content

Commit

Permalink
only show "press any key" if not canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed May 26, 2017
1 parent 88de2c6 commit 7196f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions bin/nextcloudpi-config
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ function nextcloud-config()

# launch selected script
info_script $script.sh || continue;
configure_script $script.sh
echo "Press any key..."
read
configure_script $script.sh && { echo "Done. Press any key..."; read; }
done
return
} # force to read the whole thing into memory, as its contents might change in update.sh
Expand Down
2 changes: 1 addition & 1 deletion etc/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function configure_script()
(
local SCRIPT=$1
cd /usr/local/etc/nextcloudpi-config.d/
config $SCRIPT || return 0 # writes "$INSTALLATION_CODE"
config $SCRIPT || return 1 # writes "$INSTALLATION_CODE"
echo -e "$INSTALLATION_CODE" > $SCRIPT # save configuration
source ./$SCRIPT # load configuration
echo -e "Launching \e[1m$( basename $SCRIPT .sh )\e[0m"
Expand Down

0 comments on commit 7196f17

Please sign in to comment.