mirror of https://github.com/ohmyzsh/ohmyzsh.git
parent
5ea25e6736
commit
604f1ef9cd
|
@ -184,7 +184,7 @@ _kube_ps1_file_newer_than() {
|
||||||
local check_time=$2
|
local check_time=$2
|
||||||
|
|
||||||
if [[ "${KUBE_PS1_SHELL}" == "zsh" ]]; then
|
if [[ "${KUBE_PS1_SHELL}" == "zsh" ]]; then
|
||||||
mtime=$(zstat -L +mtime "${file}")
|
mtime=$(zstat +mtime "${file}")
|
||||||
elif stat -c "%s" /dev/null &> /dev/null; then
|
elif stat -c "%s" /dev/null &> /dev/null; then
|
||||||
# GNU stat
|
# GNU stat
|
||||||
mtime=$(stat -L -c %Y "${file}")
|
mtime=$(stat -L -c %Y "${file}")
|
||||||
|
|
Loading…
Reference in New Issue