1
0
forked from mir/linux-vm-tools

rediret errors to stderr

This commit is contained in:
Björn Bidar
2018-03-02 09:10:52 +01:00
parent 3f933eee18
commit 80666ace16

View File

@@ -1,4 +1,4 @@
#! /bin/bash #!/bin/bash
# #
# This script is for Ubuntu 18.04 Bionic Beaver to download and install XRDP+XORGXRDP via # This script is for Ubuntu 18.04 Bionic Beaver to download and install XRDP+XORGXRDP via
@@ -11,6 +11,7 @@
# Update our machine to the latest code if we need to. # Update our machine to the latest code if we need to.
# #
# Check if we have the bionic-proposed sources list # Check if we have the bionic-proposed sources list
sudo cat /etc/apt/sources.list | grep bionic-proposed > /dev/null sudo cat /etc/apt/sources.list | grep bionic-proposed > /dev/null
if [ "$?" == "1" ]; then if [ "$?" == "1" ]; then
@@ -21,12 +22,9 @@ fi
sudo apt update && sudo apt dist-upgrade -y sudo apt update && sudo apt dist-upgrade -y
if [ -f /var/run/reboot-required ]; then if [ -f /var/run/reboot-required ]; then
echo echo "A reboot is required in order to proceed with the install." >&2
echo "A reboot is required in order to proceed with the install." echo "Please reboot and re-run this script to finish the install." >&2
echo "Please reboot and re-run this script to finish the install." exit 1
echo
exit
fi fi
############################################################################### ###############################################################################