Merge pull request #15 from budgidiere/patch-1

Fix some brokenness when using on windows computers with spaces...
This commit is contained in:
tr7zw 2020-07-15 19:53:28 +02:00 committed by GitHub
commit f72fe7e136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
sourceBase=$(dirname $SOURCE)/../
cd ${basedir:-$sourceBase}
cd "${basedir:-$sourceBase}"
basedir=$(pwd -P)
cd -

2
yapfa
View File

@ -9,7 +9,7 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
done
SOURCE=$([[ "$SOURCE" = /* ]] && echo "$SOURCE" || echo "$PWD/${SOURCE#./}")
basedir=$(dirname "$SOURCE")
. $basedir/scripts/init.sh
. "$basedir"/scripts/init.sh
paperstash() {
STASHED=$(git stash)