haiku/data/bin/welcome
Augustin Cavalier 7732094125 data/bin/welcome: update #! line to reference sh and not bash.
Fixes #11719.
Makes it possible to use another shell package to run Haiku (such as zsh
or mksh).

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-01-08 08:58:29 +01:00

17 lines
385 B
Bash
Executable File

#!/bin/sh
welcomeURL="\
http://cgit.haiku-os.org/haiku/plain/docs/welcome/welcome_en.html"
welcomeDir=/boot/system/documentation/welcome/
welcomeFile=$welcomeDir/welcome_en.html
localizedWelcomeFile=$welcomeDir/welcome_"$LANG".html
if [ -f $localizedWelcomeFile ]; then
open file://$localizedWelcomeFile
elif [ -f $welcomeFile ]; then
open $welcomeFile
else
open $welcomeURL
fi