mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-10 19:28:41 +00:00
15 lines
277 B
Bash
Executable File
15 lines
277 B
Bash
Executable File
#!/bin/bash
|
|
|
|
strindex() {
|
|
x="${1%%$2*}"
|
|
[[ "$x" = "$1" ]] && echo -1 || echo "${#x}"
|
|
}
|
|
|
|
orgpath="$(pwd)"
|
|
repository="Orange-Management"
|
|
pos=$(strindex "$orgpath" "$repository")
|
|
length=$pos+${#repository}
|
|
rootpath=${orgpath:0:length}
|
|
|
|
. ${rootpath}/Build/Hooks/delegator.sh
|