source: trunk/debathena/scripts/daschroot @ 25117

Revision 25117, 422 bytes checked in by geofft, 13 years ago (diff)
daschroot: error out on failure, not success
  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3# Gives you an interactive shell with Debathena repositories configured
4
5chroot=$1
6if [ -z "$chroot" ]; then
7    echo "usage: daschroot <chroot name>"
8    exit 1
9fi
10shift
11
12if ! schroot -c "$chroot" -i >/dev/null; then
13    exit $?
14fi
15
16session=$(schroot -c "$chroot" -b)
17schroot -c "$session" -r -u root -- "$(readlink -f "$(dirname "$0")/chroot-sources")"
18schroot -c "$session" -r "$@"
19schroot -c "$session" -e
Note: See TracBrowser for help on using the repository browser.