Commit c92cfb40 authored by Mikaël Salson's avatar Mikaël Salson

Backup: Mixing how if are working in C and in SH...

In bash we must test the value: if [ 0 ] is evaluated to true!
Three commits for a small modification... I should have a rest.
parent 750f2e83
......@@ -21,7 +21,7 @@ if [ $# -ge 1 ]; then
fi
now=$(date +"%Y_%m_%d")
if [ $COMPLETE ]; then
if [ $COMPLETE -eq 1 ]; then
filename="${DIR}backup_"$now
zip -r $filename web2py/applications/vidjil/uploads/ web2py/applications/vidjil/databases/
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment