aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaxchristi888@gmail.com <paxchristi888@gmail.com>2019-12-10 09:12:26 +0000
committerpaxchristi888@gmail.com <paxchristi888@gmail.com>2019-12-10 09:12:26 +0000
commitc23d684d27f840032c143fb9979b1bb81c75533e (patch)
treebe24548c9fce8f3d494d40aeb65037b748cc9f60
parent8506cb53ab24a19bbdbdef3cf6bb9030c9bc204f (diff)
downloadcpt-c23d684d27f840032c143fb9979b1bb81c75533e.tar.gz
Only copy resolv.conf from host if it doesn't exist
FossilOrigin-Name: 0603524ea36fc440257d0dbdba783601a440b05dc7c0c94931a9f5b845f5ac69
-rwxr-xr-xcontrib/kiss-chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-chroot b/contrib/kiss-chroot
index 52d5115..42146f9 100755
--- a/contrib/kiss-chroot
+++ b/contrib/kiss-chroot
@@ -38,7 +38,7 @@ main() {
}
log Copying /etc/resolv.conf from host; {
- [ ! -f "/$1/etc/resolv.conf" ] && cp /etc/resolv.conf "$1/etc"
+ [ -f "/$1/etc/resolv.conf" ] || cp /etc/resolv.conf "$1/etc"
}
log Entering chroot; {