Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Check 4 idiotism
  4. if [ ! $# -eq 4 ]; then
  5.     echo "Number of arguments is invalid:" $# "/ 4"
  6.     exit 1
  7. fi
  8.  
  9. if [ -z $EEG_TZ ]; then
  10.     EEG_TZ="UTC";
  11. fi
  12.  
  13. #echo $EEG_TZ
  14.  
  15. timetableFile=$1
  16. if [ -z $timetableFile ]; then
  17.     echo "ERROR: Missing Timetable file"
  18.     exit 1;
  19. fi
  20.  
  21. eegFile=$2
  22. if [ -z $eegFile ]; then
  23.     echo "ERROR: Missing EEG file"
  24.     exit 1;
  25. fi
  26.  
  27. larinxFile=$3
  28. if [ -z $larinxFile ]; then
  29.     echo "ERROR: Missing Laringograph file"
  30.     exit 1;
  31. fi
  32.  
  33. targetDir=$4
  34. if [ -z $targetDir ]; then
  35.     targetDir=$(echo $(pwd)/result)
  36.     mkdir targetDir;
  37. fi
  38.  
  39. #END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement