File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3030check_folder_age () {
3131 folderA=$1
3232 folderB=$2
33- folderA_age=$( find " $folderA " -type f -printf ' %T@' | sort -n | tail -n 1)
34- folderB_age=$( find " $folderB " -type f -printf ' %T@' | sort -n | tail -n 1)
33+
34+ if [[ " $OSTYPE " == " darwin" * ]]; then
35+ folderA_age=$( find " $folderA " -type f -exec stat -f ' %Dm' {} \; | sort -n | tail -n 1)
36+ folderB_age=$( find " $folderB " -type f -exec stat -f ' %Dm' {} \; | sort -n | tail -n 1)
37+ else
38+ folderA_age=$( find " $folderA " -type f -printf ' %T@' | sort -n | tail -n 1)
39+ folderB_age=$( find " $folderB " -type f -printf ' %T@' | sort -n | tail -n 1)
40+ fi
3541
3642 if awk " BEGIN {exit !($folderA_age > $folderB_age )}" ; then
3743 echo 1
Original file line number Diff line number Diff line change 2121SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
2222source ${SCRIPT_DIR} /utils-openssl.sh
2323source ${SCRIPT_DIR} /utils-wolfssl.sh
24+ source ${SCRIPT_DIR} /utils-general.sh
2425
2526WOLFPROV_SOURCE_DIR=${SCRIPT_DIR} /..
2627WOLFPROV_INSTALL_DIR=${SCRIPT_DIR} /../wolfprov-install
You can’t perform that action at this time.
0 commit comments