Skip to content

Commit

Permalink
Fix log-head-script basename var
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas North committed Jun 2, 2018
1 parent 1c9215e commit f7fda95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/log-head_script
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os-log_script() {

### All in One Bash Logger | v0.6.0 | 2017-10-18 | 2018-05-25 | Nz

script_name=$(base_name "$0") ### The name of this script
script_name=$(basename "$0") ### The name of this script
now="$(date +"%Y-%m-%d_%H-%M-%S")" ### The current timestamp
log_dir="$HOME/logs/$script_name" ### Don't store anything else than logs in here!
log_file="$log_dir/$now" ### The new log_file
Expand All @@ -26,7 +26,7 @@ os-log_script() {

os-head_script() {

script_name=$(base_name "$0") ### The name of this script
script_name=$(basename "$0") ### The name of this script
now="$(date +"%Y-%m-%d_%H-%M-%S")" ### The current timestamp
echo "Starting $script_name script on $now..." && echo ### Write heading to log_file

Expand Down

0 comments on commit f7fda95

Please sign in to comment.