mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* Add lite-serve with VSCode launcher * Make lite-serve smarter to work with Basic authtype as well * Change and unify app-config-replace script
18 lines
275 B
Bash
Executable File
18 lines
275 B
Bash
Executable File
specFile=$1;
|
|
configFile=$2;
|
|
|
|
findconfig() {
|
|
if [ -f "$1" ]; then
|
|
printf '%s\n' "${PWD%/}/$1"
|
|
elif [ "$PWD" = / ]; then
|
|
false
|
|
else
|
|
(cd .. && findconfig $1)
|
|
fi
|
|
}
|
|
|
|
DIR=$(dirname "$specFile")
|
|
cd $DIR
|
|
configFile=`findconfig "$configFile"`;
|
|
echo "$configFile";
|