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 | |
---|
5 | chroot=$1 |
---|
6 | if [ -z "$chroot" ]; then |
---|
7 | echo "usage: daschroot <chroot name>" |
---|
8 | exit 1 |
---|
9 | fi |
---|
10 | shift |
---|
11 | |
---|
12 | if ! schroot -c "$chroot" -i >/dev/null; then |
---|
13 | exit $? |
---|
14 | fi |
---|
15 | |
---|
16 | session=$(schroot -c "$chroot" -b) |
---|
17 | schroot -c "$session" -r -u root -- "$(readlink -f "$(dirname "$0")/chroot-sources")" |
---|
18 | schroot -c "$session" -r "$@" |
---|
19 | schroot -c "$session" -e |
---|
Note: See
TracBrowser
for help on using the repository browser.