X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fdemos%2Fconfig.sh;h=fd87c138bead0d5abb8ab2732cf788ec102200f0;hp=c72a010f6623db5b1af7959aae03b1b7648b4c4e;hb=c23034aa2b2101e0220d811161613983f58821a2;hpb=9df089d4803a1ba44299d5cb30fb4e31c83f7db2 diff --git a/lustre/demos/config.sh b/lustre/demos/config.sh index c72a010..fd87c13 100644 --- a/lustre/demos/config.sh +++ b/lustre/demos/config.sh @@ -40,3 +40,14 @@ plog () { fi } +# A routine to display a command, and prompt user if it should be run +qrun () { + echo + echo -n "Run '$*' [Y/n]?'"; + read JUNK + + case $JUNK in + n*|N*) echo "'$*' not run" ;; + *) plog $* ;; + esac +}