File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# The configuration is adapted from the Ubuntu 16.04 script.
77#
88
9- if [ $( id -u) -ne 0 ]; then
9+ if [ " $( id -u) " -ne 0 ]; then
1010 echo ' This script must be run with root privileges' >&2
1111 exit 1
1212fi
Original file line number Diff line number Diff line change 44# This script is for Arch Linux to download and install XRDP+XORGXRDP
55#
66
7- if [ $( id -u) -eq 0 ]; then
7+ if [ " $( id -u) " -eq 0 ]; then
88 echo ' This script must be run as a non-root user, as building packages as root is unsupported.' >&2
99 exit 1
1010fi
@@ -17,22 +17,22 @@ sudo pacman -Syu --needed --noconfirm base base-devel git
1717
1818# Create a build directory in tmpfs
1919TMPDIR=$( mktemp -d)
20- pushd $TMPDIR
20+ pushd " $TMPDIR " || exit
2121
2222# ##############################################################################
2323# XRDP
2424#
2525(
2626 git clone https://aur.archlinux.org/xrdp.git
27- cd xrdp
27+ cd xrdp || exit
2828 makepkg -sri --noconfirm
2929)
3030# ##############################################################################
3131# XORGXRDP
3232# Devel version, because release version includes a bug crashing gnome-settings-daemon
3333(
3434 git clone https://aur.archlinux.org/xorgxrdp-devel-git.git
35- cd xorgxrdp-devel-git
35+ cd xorgxrdp-devel-git || exit
3636 makepkg -sri --noconfirm
3737)
3838# ##############################################################################
Original file line number Diff line number Diff line change 77# Major thanks to: http://c-nergy.be/blog/?p=10752 for the tips.
88#
99
10- if [ ! $( id -u) ]; then
10+ if [ ! " $( id -u) " ]; then
1111 echo ' This script must be run with root privileges' >&2
1212 exit 1
1313fi
Original file line number Diff line number Diff line change 1111# Update our machine to the latest code if we need to.
1212#
1313
14- if [ $( id -u) -ne 0 ]; then
14+ if [ " $( id -u) " -ne 0 ]; then
1515 echo ' This script must be run with root privileges' >&2
1616 exit 1
1717fi
@@ -48,7 +48,7 @@ if [ ! -d $XRDP_PATH ]; then
4848fi
4949
5050# Configure XRDP
51- cd $XRDP_PATH
51+ cd $XRDP_PATH || exit
5252./bootstrap
5353./configure --enable-ipv6 --enable-jpeg --enable-fuse --enable-rfxcodec --enable-opus --enable-painter --enable-vsock
5454
@@ -121,7 +121,7 @@ if [ ! -d $XORGXRDP_PATH ]; then
121121fi
122122
123123# Configure XORGXRDP
124- cd $XORGXRDP_PATH
124+ cd $XORGXRDP_PATH || exit
125125./bootstrap
126126./configure
127127
Original file line number Diff line number Diff line change 1111# Update our machine to the latest code if we need to.
1212#
1313
14- if [ $( id -u) -ne 0 ]; then
14+ if [ " $( id -u) " -ne 0 ]; then
1515 echo ' This script must be run with root privileges' >&2
1616 exit 1
1717fi
You can’t perform that action at this time.
0 commit comments