From 980f1e92cd32d779ee948362fbdbea2a05cfe412 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 6 Oct 2010 03:39:50 +0800 Subject: [PATCH] no need for -d on mkdir -p: checks that automatically Signed-off-by: Nico Schottelius --- binscripts/rvm-update-head | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/binscripts/rvm-update-head b/binscripts/rvm-update-head index d646dbc4bc..e0c6fe1970 100755 --- a/binscripts/rvm-update-head +++ b/binscripts/rvm-update-head @@ -15,9 +15,7 @@ fi rvm_path="${rvm_path:-"$HOME/.rvm"}" -if [[ ! -d "$rvm_path/src" ]] ; then - mkdir -p "$rvm_path/src/" -fi +mkdir -p "$rvm_path/src/" builtin cd "$rvm_path/src"