Updated scripts installation
This commit is contained in:
23
script/hatch
23
script/hatch
@@ -5,7 +5,7 @@
|
||||
# Hatch script for MBSE BBS.
|
||||
#
|
||||
#============================================================================
|
||||
# Copyright (C) 1997-2002
|
||||
# Copyright (C) 1997-2004
|
||||
#
|
||||
# Michiel Broek FIDO: 2:280/2802
|
||||
# Beekmansbos 10
|
||||
@@ -31,11 +31,11 @@
|
||||
#
|
||||
# Global settings, change as needed:
|
||||
#
|
||||
# Password, see menu 1.13.2
|
||||
# Password, see menu 1.10.2
|
||||
#
|
||||
HATCHPWD="DizIzMyBIGseeKret"
|
||||
INBOUND=$MBSE_ROOT/var/inbound
|
||||
HVERSION="1.0.1"
|
||||
HVERSION="1.0.2"
|
||||
|
||||
|
||||
if [ "`id -un`" != "mbse" ]; then
|
||||
@@ -43,6 +43,11 @@ if [ "`id -un`" != "mbse" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "DizIzMyBIGseeKret" == "${HATCHPWD}" ]; then
|
||||
echo "This script is not yet configured, first edit this script before use!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Hatch files for MBSE BBS. All files you want to hatch must be
|
||||
@@ -79,13 +84,13 @@ do
|
||||
echo -e "Enter description for $f (empty is skip file)"
|
||||
echo -n ": "
|
||||
read DESC
|
||||
echo -e "Replace filename (empty is none)"
|
||||
echo -n ": "
|
||||
read REPL
|
||||
echo -e "Magic filename (empty is no magic)"
|
||||
echo -n ": "
|
||||
read MAGIC
|
||||
if [ ! -z "$DESC" ]; then
|
||||
echo -e "Replace filename (empty is none)"
|
||||
echo -n ": "
|
||||
read REPL
|
||||
echo -e "Magic filename (empty is no magic)"
|
||||
echo -n ": "
|
||||
read MAGIC
|
||||
let i=i+1
|
||||
FILE=$INBOUND/`$MBSE_ROOT/bin/mbseq`.tic
|
||||
echo "Hatch" > $FILE
|
||||
|
Reference in New Issue
Block a user