Skip to content

Commit

Permalink
fixes for DATE_cmd.sh for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Feb 26, 2021
1 parent abc7c61 commit 0318d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proj_mgmt/DATE_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ osType=$(uname -s)
my_cmd=date

if [ $osType = "Darwin" ]; then
if type -p gdate; then
if type -p gdate > /dev/null 2>&1; then
my_cmd=gdate
else
my_cmd=date
Expand Down

0 comments on commit 0318d52

Please sign in to comment.