From 266b50380ee5e20fac809c552354f02316fccd31 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 8 Nov 2001 17:32:35 +0000 Subject: [PATCH] made prompting for linux directory work like prompting for rtlinux directory (doesn't assume directory found in .sourcedirs is correct) --- scripts/dep.linux | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/dep.linux b/scripts/dep.linux index 25ba9b80..880dadb1 100755 --- a/scripts/dep.linux +++ b/scripts/dep.linux @@ -1,11 +1,9 @@ #!/bin/sh -if [ "$LINUXDIR" = "" ] -then - echo -n "Enter location of Linux source tree [/usr/src/linux]: " - read LINUXDIR - : ${LINUXDIR:=/usr/src/linux} -fi +default=${LINUXDIR:=/usr/src/linux} +echo -n "Enter location of Linux source tree [$default]: " +read LINUXDIR +: ${LINUXDIR:=$default} if [ ! -f "$LINUXDIR/.config" ];then echo Kernel source tree at $LINUXDIR is not configured -- 2.26.2