create new workspace

message in name with more than 30 characters

fix in messages
This commit is contained in:
Ronald Q
2016-11-04 17:10:36 -04:00
committed by qronald
parent 36ace93272
commit fd5ed6acea
6 changed files with 47 additions and 23 deletions

View File

@@ -604,6 +604,11 @@ function run_workspace_restore($args, $opts) {
G::verifyPath(PATH_DATA . 'upgrade', true);
if(isset($args[1]) && strlen($args[1])>=30){
eprintln("Invalid workspace name, insert a maximum of 30 characters.", 'red');
return;
}
if (strpos($filename, "/") === false && strpos($filename, '\\') === false) {
$filename = PATH_DATA . "backups/$filename";
if (!file_exists($filename) && substr_compare($filename, ".tar", -4, 4, true) != 0)