haiku/data/bin/userguide

17 lines
380 B
Plaintext
Raw Normal View History

#!/bin/bash
userGuideURL="\
2018-08-21 03:58:06 +03:00
https://www.haiku-os.org/docs/userguide/en/contents.html"
userGuideDir=/boot/system/documentation/userguide/
userGuide=$userGuideDir/en/contents.html
localizedUserGuide=$userGuideDir/"$LANG"/contents.html
if [ -f $localizedUserGuide ]; then
open file://$localizedUserGuide
elif [ -f $userGuide ]; then
open $userGuide
else
open $userGuideURL
fi