Merge branch 'master' into autotools-conversion

This commit is contained in:
Jon Trulson
2019-12-01 13:31:21 -07:00
5 changed files with 12 additions and 19 deletions

View File

@@ -52,7 +52,7 @@ LOGFILE="installCDE.$$.log"
Log()
{
/bin/echo "$1" | tee -a $LOGFILE
echo "$1" | tee -a $LOGFILE
}
MakeTarball()
@@ -537,14 +537,7 @@ XCOMM
PLATFORM_SCRIPT_DIR=hp
fi
if [ "$PLATFORM" = "aix" ];
then
USER=$(/bin/whoami)
else
USER=$(/usr/bin/whoami)
fi
if [ "$USER" != "root" ];
if [ $(whoami) != "root" ];
then
echo ""
echo "You should be root to run this script. Continuing anyway."

View File

@@ -96,13 +96,6 @@ else # Build system = HP
PLATFORM=hp-ux
fi
if [ $PLATFORM = "aix" ];
then
USER=`/bin/whoami`
else
USER=`/usr/bin/whoami`
fi
awkit() {
awk '
BEGIN {
@@ -504,7 +497,7 @@ doit()
}
# set permissions for non-links
if [ "${TYPE%link}" = "$TYPE" ]; then
if [ "$USER" = "root" ]; then
if [ $(whoami) = "root" ]; then
chgrp $GROUP $DEST ||
echo "ERROR: \"chgrp $GROUP $DEST\" failed" >&2
chown $OWNER $DEST ||