1#!/bin/bash 2 3userGuideURL="\ 4 https://www.haiku-os.org/docs/userguide/en/contents.html" 5userGuideDir=/boot/system/documentation/userguide/ 6userGuide=$userGuideDir/en/contents.html 7localizedUserGuide=$userGuideDir/"$LANG"/contents.html 8 9if [ -f $localizedUserGuide ]; then 10 open file://$localizedUserGuide 11elif [ -f $userGuide ]; then 12 open $userGuide 13else 14 open $userGuideURL 15fi 16 17