探测 boot 脚本是否存在于 package.json 里
This commit is contained in:
@@ -49,16 +49,3 @@ do
|
||||
fi
|
||||
done
|
||||
popd
|
||||
|
||||
get_char()
|
||||
{
|
||||
SAVEDSTTY=`stty -g`
|
||||
stty -echo
|
||||
stty cbreak
|
||||
dd if=/dev/tty bs=1 count=1 2> /dev/null
|
||||
stty -raw
|
||||
stty echo
|
||||
stty $SAVEDSTTY
|
||||
}
|
||||
echo "Press any key to exit!"
|
||||
char=`get_char`
|
||||
Reference in New Issue
Block a user