View difference between Paste ID: kPjyDCzy and Xp3y4Lqp
SHOW: | | - or go back to the newest paste.
1
import scala.sys.process._
2
3-
def mount(dev: String, dir: String): Unit = 
3+
def mount(dev: String, dir: String): Unit = s"mount $dev $dir" ! match {
4-
  (s"mount $dev $dir" !) match {
4+
  case 0 => ()
5-
    case 0 => ()
5+
  case _ => "echo \"Error occurred during mount\nDo you have the proper rights?\"" !
6-
    case _ => "echo \"Error occurred during mount\nDo you have the proper rights?\"" !
6+
}