Shorten windows cmd
This commit is contained in:
parent
dac7f5768f
commit
2f2e9d387a
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -1201,7 +1201,7 @@ getbirthday () {
|
|||
;;
|
||||
|
||||
"Windows")
|
||||
birhday="$(cmd /K WMIC OS GET InstallDate)"
|
||||
birhday="$(wmic os get InstallDate)"
|
||||
birthday=${birthday/InstallDate }
|
||||
birthday=${birthday//[[:space:]]/ }
|
||||
date_cmd="$(date -d"$birthday" "+%a %d %b %Y %l:%M %p")"
|
||||
|
|
Loading…
Reference in a new issue