update: install.sh: use git rev-parse
This commit is contained in:
parent
e6af2d5afc
commit
6d40be6cf6
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue