generated from me/template-mit
Fix the DIR variable to be current directory, not program directory.
This commit is contained in:
@@ -7,9 +7,12 @@
|
||||
|
||||
## Variables ##
|
||||
|
||||
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||
loop=false
|
||||
|
||||
DIR="`pwd`"
|
||||
dir="`basename $DIR`"
|
||||
|
||||
## Validations ##
|
||||
|
||||
if [[ "$DIR" != *"MASTER" ]]; then
|
||||
@@ -19,8 +22,7 @@ fi
|
||||
|
||||
## Main ##
|
||||
|
||||
new_dir="`basename $DIR`"
|
||||
new_dir="${new_dir//MASTER/clone}"
|
||||
new_dir="${dir//MASTER/clone}"
|
||||
|
||||
sleep=0
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user