Created
April 17, 2018 20:21
-
-
Save rlespinasse/2c266aeea6089cdd1dba2558fbf90258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Initialize applicative variables | |
dirname=$(dirname "$(greadlink -f "$0")") | |
basename=$(basename "$0") | |
filename=${basename%.*} | |
logdir=${dirname} | |
logfile=${filename}.log | |
exec &> >(tee -a "${logdir}/${logfile}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment