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