From 78c0d84da20274b205a8351d45efec4e461e1b3c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 7 Dec 2013 23:52:20 +0900 Subject: [PATCH] use mkdir -p instead of install -d --- setup.sh | 6 +++--- shrc | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.sh b/setup.sh index 967cfcb..8462ed3 100755 --- a/setup.sh +++ b/setup.sh @@ -237,9 +237,9 @@ setup_darwin(){ # mkdirs setup_dirs(){ - install -d "$__homelocal" - install -d "$__homelocal/bin" - install -d "$__homevar" + mkdir -p "$__homelocal" + mkdir -p "$__homelocal/bin" + mkdir -p "$__homevar" } ######################### diff --git a/shrc b/shrc index 567c0cd..1c5b8c7 100755 --- a/shrc +++ b/shrc @@ -181,7 +181,7 @@ then fi __match "$TMP" "${USER}-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp" export TEMP="$TMP" -test -d "$TMP" || install -d "$TMP" +test -d "$TMP" || mkdir -p "$TMP" if ! $iswindows && null type stty then @@ -682,7 +682,7 @@ _tmux_prefs(){ dt(){ # dt [] [] __dtach_dir="${TMP}/dtach" - install -d "${__dtach_dir}" + mkdir -p "${__dtach_dir}" if test -n "${__MY_DTACH}" then @@ -747,7 +747,7 @@ dtscr(){ local _scr_file="${HOME}/${_name}.script" local _dt_dir="${TMP}/dtscr" - install -d "$_dt_dir" + mkdir -p "$_dt_dir" dtach -n "${_dt_dir}/${_name}" script "${_scr_file_}" "$@" # echo $_name @@ -855,7 +855,7 @@ di(){ tb(){ __datenum=`date +%Y%m%d-%H%M%S` __tb="$HOME/.var/tb/$__datenum" - install -d "$__tb" + mkdir -p "$__tb" for file in "$@" do mv -t "$__tb" "$file" @@ -871,7 +871,7 @@ mkcd(){ then echo "Dir \"$1\" already exists." else - install -d "$1" + mkdir -p "$1" echo "Dir \"$1\" created." fi cd "$1"