/*
* Copyright (c) 2012-2015 iWave Software LLC
* All Rights Reserved
*/
package com.emc.aix.command;
import org.apache.commons.lang.StringUtils;
import com.iwave.ext.command.CommandException;
public class MountCommand extends AixCommand {
public MountCommand(String mountPoint) {
setCommand(String.format("mount %s", mountPoint));
setRunAsRoot(true);
}
@Override
protected void processError() throws CommandException {
String stdout = StringUtils.trimToEmpty(getOutput().getStdout());
String stderr = StringUtils.trimToEmpty(getOutput().getStderr());
if (stdout.isEmpty() || !stderr.isEmpty()) {
super.processError();
}
}
}