forked from mir/linux-vm-tools
Merge pull request #7 from Thaodan/errors_std_err
rediret errors to stderr
This commit is contained in:
commit
f0b779fee5
@ -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
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user