Shell scripts are now POSIX compatible, thx @ Johannes Schauer

This commit is contained in:
Peter 'Pita' Martischka 2011-07-26 19:28:49 +01:00
parent 00824ae2d7
commit 75cc53139e
5 changed files with 16 additions and 16 deletions

View file

@ -1,15 +1,15 @@
#!/bin/bash
#!/bin/sh
if [ -d "../bin" ]; then
cd "../"
fi
type -P node &>/dev/null || {
hash node > /dev/null 2>&1 || {
echo "You need to install node!" >&2
exit 1
}
type -P doc.md &>/dev/null || {
hash doc.md > /dev/null 2>&1 || {
echo "You need to install doc.md! npm install -g doc.md" >&2
exit 1
}