Merge "Clean up bashate failures"
This commit is contained in:
commit
a266ab3e7a
|
@ -1,4 +1,4 @@
|
|||
function print_help() {
|
||||
function print_help {
|
||||
echo "Usage: `basename $0` command [options]"
|
||||
echo ""
|
||||
echo "Commands:"
|
||||
|
@ -8,7 +8,7 @@ function print_help() {
|
|||
echo ""
|
||||
}
|
||||
|
||||
function site_init() {
|
||||
function site_init {
|
||||
if [ ! $1 ]; then
|
||||
echo "ERROR: site parameter mandatory"
|
||||
exit 1
|
||||
|
@ -71,7 +71,7 @@ function site_init() {
|
|||
ln -s $SITE_ROOT/slot0 $SITE_ROOT/w
|
||||
}
|
||||
|
||||
function site_status() {
|
||||
function site_status {
|
||||
if [ ! $1 ]; then
|
||||
echo "ERROR: site parameter mandatory"
|
||||
exit 1
|
||||
|
@ -101,18 +101,18 @@ function site_status() {
|
|||
fi
|
||||
}
|
||||
|
||||
function fetch_catalog() {
|
||||
function fetch_catalog {
|
||||
curl --silent $SOURCE_ROOT > $SITE_ROOT/releases.lst
|
||||
grep -q "^<!DOCTYPE HTML PUBLIC" $SITE_ROOT/releases.lst
|
||||
}
|
||||
|
||||
function catalog_get_version() {
|
||||
function catalog_get_version {
|
||||
RAW_LINE=`cat $SITE_ROOT/releases.lst | grep "$RELEASE_NAME" | sed "s/<[^>]\+>//g" | sed -r "s/^$RELEASE_NAME//"`
|
||||
RELEASE_DATE=`echo $RAW_LINE | awk '{ print $1 " " $2}'`
|
||||
echo $RELEASE_DATE
|
||||
}
|
||||
|
||||
function site_update() {
|
||||
function site_update {
|
||||
if [ ! $1 ]; then
|
||||
echo "ERROR: missing site parameter"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue