my echo statements had leading '$', how did they get there?

I added to the test command so that you can see exactly how it was called.
change the example to show how --tree now works.
This commit is contained in:
kestes%walrus.com 2001-11-14 21:23:40 +00:00
Родитель 1006ed316d
Коммит 618b9d7704
1 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -16,7 +16,7 @@ LOCKFILE=/var/lock/subsys/build
build_args="--daemonize --buildcf $BUILDCF" build_args="--daemonize --buildcf $BUILDCF"
build_args="$build_args --build construct -- --tree $TREE" build_args="$build_args --build construct --tree $TREE"
# Source function library. # Source function library.
@ -28,7 +28,7 @@ build_args="$build_args --build construct -- --tree $TREE"
RETVAL=0 RETVAL=0
start () { start () {
echo -n $"Starting Build: " echo -n "Starting Build: "
daemon --user build $BUILDSCRIPT $build_args daemon --user build $BUILDSCRIPT $build_args
RETVAL=$? RETVAL=$?
echo echo
@ -36,14 +36,17 @@ start () {
} }
test () { test () {
# print out the build script for examination # print out the build command and the build script for examination
echo
echo $BUILDSCRIPT --test $build_args
echo
$BUILDSCRIPT --test $build_args $BUILDSCRIPT --test $build_args
RETVAL=$? RETVAL=$?
echo echo
} }
stop () { stop () {
echo -n $"Stopping Build: " echo -n "Stopping Build: "
killproc $BUILDSCRIPT killproc $BUILDSCRIPT
RETVAL=$? RETVAL=$?
echo echo
@ -80,7 +83,7 @@ case "$1" in
status build status build
;; ;;
*) *)
echo $"Usage: build {start|stop|restart|reload|condrestart|status|test}" echo "Usage: build {start|stop|restart|reload|condrestart|status|test}"
exit 1 exit 1
esac esac