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 ##
|
## Variables ##
|
||||||
|
|
||||||
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||||
loop=false
|
loop=false
|
||||||
|
|
||||||
|
DIR="`pwd`"
|
||||||
|
dir="`basename $DIR`"
|
||||||
|
|
||||||
## Validations ##
|
## Validations ##
|
||||||
|
|
||||||
if [[ "$DIR" != *"MASTER" ]]; then
|
if [[ "$DIR" != *"MASTER" ]]; then
|
||||||
@@ -19,8 +22,7 @@ fi
|
|||||||
|
|
||||||
## Main ##
|
## Main ##
|
||||||
|
|
||||||
new_dir="`basename $DIR`"
|
new_dir="${dir//MASTER/clone}"
|
||||||
new_dir="${new_dir//MASTER/clone}"
|
|
||||||
|
|
||||||
sleep=0
|
sleep=0
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user