summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtinderbox-restart.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinderbox-restart.sh b/tinderbox-restart.sh
index b44df3d..f9d37d0 100755
--- a/tinderbox-restart.sh
+++ b/tinderbox-restart.sh
@@ -83,13 +83,13 @@ fi
reset_emergelog
-cp /usr/src/linux/.config /usr/src/config
+[[ -f /usr/src/linux/.config ]] && cp /usr/src/linux/.config /usr/src/config
if emerge -u1 sys-kernel/gentoo-sources &&
fgrep -q '>>> emerge' /var/log/emerge.log; then
dent_me "new #gentoo-sources, making oldconfig"
- cp /usr/src/config /usr/src/linux/.config
+ [[ -f /usr/src/config ]] && cp /usr/src/config /usr/src/linux/.config
pushd /usr/src/linux
make -j14 oldconfig && \