add backup last build
This commit is contained in:
parent
f01d3177eb
commit
a37468e027
11
dist/bes-build
vendored
11
dist/bes-build
vendored
|
@ -9,8 +9,13 @@ bes.build(){
|
||||||
bes.echo.state $?
|
bes.echo.state $?
|
||||||
fi
|
fi
|
||||||
if [ -f "$APP_BIN" ]; then
|
if [ -f "$APP_BIN" ]; then
|
||||||
bes.echo.action "removing ${Coff}dist/$APP_NAME${Coff}"
|
if [ "$1" = "-s" ]; then
|
||||||
rm $APP_BIN
|
bes.echo.action "backup last build ${Coff}dist/$(date +%y%m%d)-$APP_NAME${Coff}"
|
||||||
|
mv $APP_BIN $APP_DIR/dist/$(date +%y%m%d)-$APP_NAME
|
||||||
|
else
|
||||||
|
bes.echo.action "removing ${Coff}dist/$APP_NAME${Coff}"
|
||||||
|
rm $APP_BIN
|
||||||
|
fi
|
||||||
bes.echo.state $?
|
bes.echo.state $?
|
||||||
fi
|
fi
|
||||||
echo "#!/bin/bash" > $APP_BIN
|
echo "#!/bin/bash" > $APP_BIN
|
||||||
|
@ -150,7 +155,7 @@ bes.main(){
|
||||||
echo
|
echo
|
||||||
if [ "$1" = "install" ]; then
|
if [ "$1" = "install" ]; then
|
||||||
bes.install
|
bes.install
|
||||||
elif [ -z "$1" ]; then
|
elif [ -z "$1" ] || [ "$1" = "-s" ]; then
|
||||||
bes.build "$1"
|
bes.build "$1"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -9,8 +9,13 @@ bes.build(){
|
||||||
bes.echo.state $?
|
bes.echo.state $?
|
||||||
fi
|
fi
|
||||||
if [ -f "$APP_BIN" ]; then
|
if [ -f "$APP_BIN" ]; then
|
||||||
bes.echo.action "removing ${Coff}dist/$APP_NAME${Coff}"
|
if [ "$1" = "-s" ]; then
|
||||||
rm $APP_BIN
|
bes.echo.action "backup last build to ${Coff}dist/$(date +%y%m%d)-$APP_NAME${Coff}"
|
||||||
|
mv $APP_BIN $APP_DIR/dist/$(date +%y%m%d)-$APP_NAME
|
||||||
|
else
|
||||||
|
bes.echo.action "removing ${Coff}dist/$APP_NAME${Coff}"
|
||||||
|
rm $APP_BIN
|
||||||
|
fi
|
||||||
bes.echo.state $?
|
bes.echo.state $?
|
||||||
fi
|
fi
|
||||||
echo "#!/bin/bash" > $APP_BIN
|
echo "#!/bin/bash" > $APP_BIN
|
||||||
|
|
|
@ -10,7 +10,7 @@ bes.main(){
|
||||||
echo
|
echo
|
||||||
if [ "$1" = "install" ]; then
|
if [ "$1" = "install" ]; then
|
||||||
bes.install
|
bes.install
|
||||||
elif [ -z "$1" ]; then
|
elif [ -z "$1" ] || [ "$1" = "-s" ]; then
|
||||||
bes.build "$1"
|
bes.build "$1"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user