[scripts] replace "source /etc/profile" with more POSIX-friendly ". /etc/profile"

This commit is contained in:
Fabio Erculiani 2012-07-25 13:23:32 +02:00
parent af53d90d23
commit d97edac969
5 changed files with 9 additions and 8 deletions

View File

@ -8,7 +8,8 @@
#
# This script requires isohybrid (which comes from syslinux package)
/usr/sbin/env-update && source /etc/profile
/usr/sbin/env-update
. /etc/profile
echo
echo "Spawning isohybrid for:"

View File

@ -1,7 +1,7 @@
#!/bin/bash
/usr/sbin/env-update
source /etc/profile
. /etc/profile
# Path to molecules.git dir
SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"

View File

@ -4,7 +4,8 @@ echo
echo "Configuring AMI chroot"
echo
/usr/sbin/env-update && source /etc/profile
/usr/sbin/env-update
. /etc/profile
# setup networking, make sure networkmanager is gone
rc-update del networkmanager default &> /dev/null

View File

@ -19,8 +19,8 @@ rm -rf /root
cp /etc/skel /root -Rap
chown root:root /root -R
source /etc/profile
/usr/sbin/env-update && source /etc/profile
/usr/sbin/env-update
. /etc/profile
# Setup locale to en_US
echo LANG=\"en_US.UTF-8\" > /etc/env.d/02locale

View File

@ -1,8 +1,7 @@
#!/bin/bash
source /etc/profile
env-update
source /etc/profile
/usr/sbin/env-update
. /etc/profile
# Setup environment vars
export ETP_NONINTERACTIVE=1