Skip to content

Commit

Permalink
Use HTML5 formatting for success / error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed May 22, 2021
1 parent 22a4684 commit 9744c9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package/synology/scripts/start-stop-status
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ case "$1" in
if [ -x "/usr/local/bin/java" ]; then
# display success message
{
echo '<p style="color:#0090D9">The latest OpenJDK has been installed successfully.</p><br>'
echo '<pre><samp>$ <kbd>java -version</kbd>'
"/usr/local/bin/java" -version
echo '</samp></pre>'
} > "$SYNOPKG_TEMP_LOGFILE" 2>&1
} >> "$SYNOPKG_TEMP_LOGFILE" 2>&1
else
# display error message
echo "Ooops, something went wrong... Run <kbd>cat $PKG_LOG</kbd> for details." > "$SYNOPKG_TEMP_LOGFILE"
echo "Ooops, something went wrong... Run <kbd>cat $PKG_LOG</kbd> for details." >> "$SYNOPKG_TEMP_LOGFILE"
fi
exit 0
;;
Expand Down

0 comments on commit 9744c9f

Please sign in to comment.