From 5b5b0013f203bb7a7028a59a986c39120d3b1373 Mon Sep 17 00:00:00 2001 From: Shibuya Keita Date: Wed, 21 Feb 2024 16:06:28 +0900 Subject: [PATCH] =?UTF-8?q?test:=20CI=20=E5=8B=95=E4=BD=9C=E7=A2=BA?= =?UTF-8?q?=E8=AA=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check.yaml | 2 ++ bin/install.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 09b4043..e907c24 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -12,4 +12,6 @@ jobs: run: apt-get update && apt-get install -y git sudo - name: Install dotfiles run: | + sed -i '1s/^.*$/#!\/bin\/bash/' ./bin/install.sh + cat ./bin/install.sh bash ./bin/install.sh diff --git a/bin/install.sh b/bin/install.sh index 1072f38..802e21b 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -7,11 +7,11 @@ echo "Starting to create symbolic links for dotfiles..." # "."から始まるファイルをシンボリックリンク for file in $(find $DOTFILES_DIR -name ".*" -type f); do - ln -snf $file ~/ + ln -snf $file ~/ || exit 1 done # iceberg.vimをシンボリックリンク -mkdir -p ~/.vim/colors -ln -snf $DOTFILES_DIR/.vim/colors/iceberg.vim ~/.vim/colors/ +mkdir -p ~/.vim/colors || exit 1 +ln -snf $DOTFILES_DIR/.vim/colors/iceberg.vim ~/.vim/colors/ || exit 1 echo "Successfully created symbolic links for dotfiles."