Skip to content

Commit f6c7b17

Browse files
fix some
- fix error with amd64 builds - added msg function
1 parent b2feab1 commit f6c7b17

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugins/envsetup

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ shout() {
2525
echo -e "=> ${*}"
2626
:
2727
}
28+
msg() {
29+
echo -e "${*}"
30+
}
2831
# lshout () { echo -e "${*}";:; }
2932

3033
do_mount() {
@@ -157,7 +160,10 @@ do_debootstrap() {
157160
if [[ -n $OVERRIDER_MIRROR ]]; then
158161
MIRROR="$OVERRIDER_MIRROR"
159162
else
160-
MIRROR="http://ports.ubuntu.com/ubuntu-ports/"
163+
case $arch in
164+
amd64|i386) MIRROR="http://archive.ubuntu.com/ubuntu/" ;;
165+
*) MIRROR="http://ports.ubuntu.com/ubuntu-ports/" ;;
166+
esac
161167
fi
162168

163169
(

0 commit comments

Comments
 (0)