summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvasile16
1 files changed, 6 insertions, 10 deletions
diff --git a/vasile b/vasile
index d203a42..8f4b98a 100755
--- a/vasile
+++ b/vasile
@@ -161,11 +161,9 @@ envkogaionbuildsystem() {
echo "Adding Kogaion Linux X86_64 Buildsystem && Setting up Portage && Setting up make.conf"
echo ""
sleep 1
- chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionbuildgit"
- chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionportageconfig"
- chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionmakeconf"
- chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionprofile"
- chroot "$overlaydir" su - "$engkogaionuser" -c "$envkogaionenvupdate"
+ for cmd in "$envkogaionbuildgit" "$envkogaionportageconfig" "$envkogaionmakeconf" "$envkogaionprofile" "$envkogaionenvupdate" ; do
+ chroot "$overlaydir" su - "$envkogaionuser" -c "$cmd"
+ done
elif [[ "$(uname -m)" = "i686" ]] ; then
export local envkogaionmakeconf="ln -sf /opt/build/conf/intel/portage/make.conf.x86 /etc/portage/make.conf"
export local envkogaionprofile="eselect profile set 1"
@@ -178,11 +176,9 @@ envkogaionbuildsystem() {
echo "Adding Kogaion Linux i686 Buildsystem && Setting up Portage && Setting up make.conf"
echo ""
sleep 1
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionbuildgit"
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionportageconfig"
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionmakeconf"
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionprofile"
- linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionenvupdate"
+ for cmd in "$envkogaionbuildgit" "$envkogaionportageconfig" "$envkogaionmakeconf" "$envkogaionprofile" "$envkogaionenvupdate" ; do
+ linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$cmd"
+ done
fi
}