changed hardcoded /bin/ paths
This commit is contained in:
parent
59c431b974
commit
450ecddfea
1 changed files with 2 additions and 2 deletions
4
bb.sh
4
bb.sh
|
@ -997,10 +997,10 @@ date_version_detect() {
|
||||||
stat -f "%Sm" -t "$format" "$2"
|
stat -f "%Sm" -t "$format" "$2"
|
||||||
elif [[ $(echo $@ | grep '\-\-date') ]]; then
|
elif [[ $(echo $@ | grep '\-\-date') ]]; then
|
||||||
# convert between dates using BSD date syntax
|
# convert between dates using BSD date syntax
|
||||||
/bin/date -j -f "%a, %d %b %Y %H:%M:%S %z" "$(echo $2 | sed 's/\-\-date\=//g')" "$1"
|
command date -j -f "%a, %d %b %Y %H:%M:%S %z" "$(echo $2 | sed 's/\-\-date\=//g')" "$1"
|
||||||
else
|
else
|
||||||
# acceptable format for BSD date
|
# acceptable format for BSD date
|
||||||
/bin/date -j "$@"
|
command date -j "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue