Bash script problems with "if" statement
Hi there.
I've been trying to get a script of mine working. The part that doesn't work (below) is involved with determining how long the script was running for. Here is the code: Code:
#!/bin/sh Code:
adz@hades:~/temp$ ./test |
All I did was remove the quotes around the $VARIABLES (makes only cosmetic differences in this case) and especially the $(parentheses); $() is similar to backticks; both are forms of command substitution. You were trying to execute TOTAL_HOURS and TOTAL_MINUTES :).
Code:
#!/bin/sh |
Brilliant. I knew it was something simple. I was sure I tried your solution previously but maybe buggered something else up. Thanks.
|
All times are GMT -5. The time now is 06:14 PM. |