File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 134134
135135# check git repository
136136root_dir=$( git rev-parse --show-toplevel)
137- if [ -z " ${root_dir} " ] || [ ! -d " ${root_dir} /.git" ] || [ ! -d " ${root_dir} /debian-stable" ]; then
137+ if [ -z " ${root_dir} " ] || [ ! -e " ${root_dir} /.git" ] || [ ! -d " ${root_dir} /debian-stable" ]; then
138138 error " this script must be run from WeeChat Relay git repository."
139139fi
140140cd " ${root_dir} "
Original file line number Diff line number Diff line change 3535
3636# check git repository
3737root_dir=$( git rev-parse --show-toplevel)
38- if [ -z " ${root_dir} " ] || [ ! -d " ${root_dir} /.git" ]; then
38+ if [ -z " ${root_dir} " ] || [ ! -e " ${root_dir} /.git" ]; then
3939 echo " This script must be run from WeeChat Relay git repository."
4040 exit 1
4141fi
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ git_version=""
4343case ${version} in
4444* -* )
4545 # devel/rc version (like 1.0.0-dev or 1.0.0-rc1)
46- if [ -d " ${root_dir} /.git" ]; then
46+ if [ -e " ${root_dir} /.git" ]; then
4747 git_version=$( cd " ${root_dir} " && git describe 2> /dev/null)
4848 fi
4949 if [ -z " ${git_version} " ]; then
You can’t perform that action at this time.
0 commit comments