瀏覽代碼

setup.sh: selfupdate do not use DOTFILES_DIR

pull/1/head
10sr 10 年之前
父節點
當前提交
f2b4314b7d
共有 1 個檔案被更改,包括 9 行新增3 行删除
  1. +9
    -3
      setup.sh

+ 9
- 3
setup.sh 查看文件

@@ -107,9 +107,15 @@ detect_systems(){


setup_selfupdate(){ setup_selfupdate(){
_msg "Download latest setup.sh from 10sr repository." _msg "Download latest setup.sh from 10sr repository."
mkdir -p "$DOTFILES_nDIR"
_download $_dotfiles_url_base/setup.sh "$DOTFILES_DIR/"setup.sh
chmod +x "$DOTFILES_DIR"/setup.sh
if test -z "$1"
then
_warn "Filename for setup script is not given"
echo "usage: setup.sh selfupdate <filename>"
_die "Abort"
fi
mkdir -vp "`dirname $1`"
_download $_dotfiles_url_base/setup.sh "$DOTFILES_DIR/$1"
chmod +x "$DOTFILES_DIR/$1"
} }






Loading…
取消
儲存