relative path support for rflash

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5042 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-01-26 06:48:36 +00:00
parent f1c70d6dce
commit cf44c5efc5

View File

@ -112,6 +112,9 @@ sub parse_args {
return( usage("Option -p must be used with --activate ") );
}
if ( exists( $opt{p} ) && ($opt{p} !~ /^\//) ) {#relative path
$opt{p} = xCAT::Utils->full_path($opt{p}, $request->{cwd}->[0]);
}
###############################
#--activate's value only can be concurrent and disruptive
################################