1
0
forked from mir/linux-vm-tools

Fix shellcheck reported problems

This commit is contained in:
Samuel Henrique
2018-10-01 14:14:50 -03:00
parent 4748bda5fb
commit 1a5b61853f
5 changed files with 10 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
# This script is for Arch Linux to download and install XRDP+XORGXRDP
#
if [ $(id -u) -eq 0 ]; then
if [ "$(id -u)" -eq 0 ]; then
echo 'This script must be run as a non-root user, as building packages as root is unsupported.' >&2
exit 1
fi
@@ -17,14 +17,14 @@ sudo pacman -Syu --needed --noconfirm base base-devel git
# Create a build directory in tmpfs
TMPDIR=$(mktemp -d)
pushd $TMPDIR
pushd "$TMPDIR" || exit
###############################################################################
# XRDP
#
(
git clone https://aur.archlinux.org/xrdp.git
cd xrdp
cd xrdp || exit
makepkg -sri --noconfirm
)
###############################################################################
@@ -32,7 +32,7 @@ pushd $TMPDIR
# Devel version, because release version includes a bug crashing gnome-settings-daemon
(
git clone https://aur.archlinux.org/xorgxrdp-devel-git.git
cd xorgxrdp-devel-git
cd xorgxrdp-devel-git || exit
makepkg -sri --noconfirm
)
###############################################################################