twn wiki on windows
This commit is contained in:
parent
9beef7686e
commit
1cd4bfa638
6
bin/twn
6
bin/twn
@ -41,7 +41,11 @@ case "$1" in
|
||||
api-gen ) "$toolpath"/gen_api_header.sh
|
||||
;;
|
||||
|
||||
wiki ) xdg-open "file://$TWNROOT/docs/wiki/index.html"
|
||||
wiki ) if [ "$OS" = "Windows_NT" ]; then
|
||||
explorer "file://""$(cygpath -w "$(command realpath $TWNROOT/docs/wiki/index.html)")"
|
||||
else
|
||||
xdg-open "file://$TWNROOT/docs/wiki/index.html"
|
||||
fi
|
||||
;;
|
||||
|
||||
* ) echo "Unknown command."
|
||||
|
Loading…
Reference in New Issue
Block a user