aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkern8
1 files changed, 2 insertions, 6 deletions
diff --git a/kern b/kern
index c6b2a57..d95ab9b 100755
--- a/kern
+++ b/kern
@@ -35,9 +35,7 @@ set_kernel() {
current=$(get_current_kernel)
kerndir=$SRCDIR/$kern
- if test ! -d "$kerndir"; then
- errx "No such file or directory: $kerndir"
- fi
+ test -d "$kerndir" || errx "No such file or directory: $kerndir"
if test "$kern" = "$current"; then
err "Warning: Latest kernel already selected: $kern"
@@ -53,9 +51,7 @@ set_kernel() {
config_kernel() {
host=${1:-$(hostname)}
- if test ! -d "$KERNFRAG"; then
- errx "No such file or directory: $KERNFRAG"
- fi
+ test -d "$KERNFRAG" || errx "No such file or directory: $KERNFRAG"
printf "Starting merge for %s...\n\n" "$host"