summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2011-12-18 13:26:04 +0000
committerChristoph Mende <angelos@gentoo.org>2011-12-18 13:26:04 +0000
commit6a36abc1da43060585a45628bc5d8bbc79152c2a (patch)
tree14d93047188257dd39fa9a69af7fc73101908c43 /scripts
parentRemove ebuilds I do not intend to maintain anymore (diff)
downloadangelos-6a36abc1da43060585a45628bc5d8bbc79152c2a.tar.gz
angelos-6a36abc1da43060585a45628bc5d8bbc79152c2a.tar.bz2
angelos-6a36abc1da43060585a45628bc5d8bbc79152c2a.zip
Make variables modifiable
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mount-chroot.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mount-chroot.sh b/scripts/mount-chroot.sh
index 17b45c1..ad419c7 100755
--- a/scripts/mount-chroot.sh
+++ b/scripts/mount-chroot.sh
@@ -14,9 +14,9 @@ if [ ! -d "$@"/dev ]; then
exit 1
fi
-PORTDIR="$(portageq portdir)"
-DISTDIR="$(portageq envvar DISTDIR)"
-PKGDIR="$(portageq envvar PKGDIR)"
+: ${PORTDIR="$(portageq portdir)"}
+: ${DISTDIR="$(portageq envvar DISTDIR)"}
+: ${PKGDIR="$(portageq envvar PKGDIR)"}
mount --bind /dev "$@"/dev
mount --bind /dev/pts "$@"/dev/pts