From 6d40be6cf6403f8a84ff31f287b7a8d9e4ee04e9 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sun, 20 Aug 2023 19:24:31 +0900 Subject: [PATCH] update: install.sh: use git rev-parse --- bin/install.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index d7db64a..f1a4a55 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -4,12 +4,13 @@ set -eu # ========================================================= # check executing location # ========================================================= -if [ ! -d "bin" -a ! -d "dotfiles" ]; then - echo "Wrong execution location" - echo "Please run this script on dotfiles root folder." - exit 1 -fi - +# if [ ! -d "bin" -a ! -d "dotfiles" ]; then +# echo "Wrong execution location" +# echo "Please run this script on dotfiles root folder." +# exit 1 +# fi +# TODO: check git in path +cd $(git rev-parse --show-toplevel) # ========================================================= # links