Build/Hooks/default.sh

15 lines
278 B
Bash

#!/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