Skip to content

Commit a5aa70a

Browse files
committed
correcting tee when spaces in username
1 parent cb94a69 commit a5aa70a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎bin/dbwebb‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,10 @@ createLab()
387387
validateUploadedResults()
388388
{
389389
WHAT=$1
390-
LOG="$HOME/$BASEDIR/.dbwebb-validate.log"
390+
LOG="$HOME/.dbwebb-validate.log"
391391
INTRO="I will now upload files to the remote server and validate them."
392-
COMMAND="$SSH 'cd $BASEDIR/$PROJECT; bin/dbwebb-validate -n $IGNORE_FAULTS $WHAT' | tee $LOG;"
393-
MESSAGE="to validate course results. Saved a log of the output, review it as:\nless -R $LOG"
392+
COMMAND="$SSH 'cd $BASEDIR/$PROJECT; bin/dbwebb-validate -n $IGNORE_FAULTS $WHAT' | tee '$LOG';"
393+
MESSAGE="to validate course results. Saved a log of the output, review it as:\nless -R '$LOG'"
394394
executeCommand "$INTRO" "$UPLOAD; $COMMAND" "$MESSAGE"
395395
}
396396

@@ -402,10 +402,10 @@ validateUploadedResults()
402402
publishResults()
403403
{
404404
WHAT=$1
405-
LOG="$HOME/$BASEDIR/.dbwebb-publish.log"
405+
LOG="$HOME/.dbwebb-publish.log"
406406
INTRO="I will now try to init the remote server and create a directory where all uploaded files will reside."
407-
COMMAND="$SSH 'cd $BASEDIR/$PROJECT; bin/dbwebb-validate $IGNORE_FAULTS $WHAT' | tee $LOG;"
408-
MESSAGE="to validate and publish all course results. Saved a log of the output, review it as:\nless -R $LOG"
407+
COMMAND="$SSH 'cd $BASEDIR/$PROJECT; bin/dbwebb-validate $IGNORE_FAULTS $WHAT' | tee '$LOG';"
408+
MESSAGE="to validate and publish all course results. Saved a log of the output, review it as:\nless -R '$LOG'"
409409
executeCommand "$INTRO" "$UPLOAD; $COMMAND" "$MESSAGE"
410410

411411
if [ $? -eq 0 ]
@@ -427,10 +427,10 @@ inspectResults()
427427
{
428428
WHAT=$1
429429
WHO=$2
430-
LOG="$HOME/$BASEDIR/.dbwebb-inspect.log"
430+
LOG="$HOME/.dbwebb-inspect.log"
431431
INTRO="I will now inspect the choosen kmom for the choosen user, if you have privilegies to do that."
432-
COMMAND="$SSH 'cd $BASEDIR/$PROJECT; bin/dbwebb-inspect $WHAT $WHO' | tee $LOG; "
433-
MESSAGE="to inspect the course results. Saved a log of the output, review it as:\nless -R $LOG"
432+
COMMAND="$SSH 'cd $BASEDIR/$PROJECT; bin/dbwebb-inspect $WHAT $WHO' | tee '$LOG'; "
433+
MESSAGE="to inspect the course results. Saved a log of the output, review it as:\nless -R '$LOG'"
434434

435435
if [ "$USER" = "$WHO" ]
436436
then

0 commit comments

Comments
 (0)