refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
16
scripts/realpath.sh
Normal file
16
scripts/realpath.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
realpath ()
|
||||
{
|
||||
f=$@;
|
||||
if [ -z "$f" ]; then
|
||||
f=$(pwd)
|
||||
fi
|
||||
if [ -d "$f" ]; then
|
||||
base="";
|
||||
dir="$f";
|
||||
else
|
||||
base="/$(basename "$f")";
|
||||
dir=$(dirname "$f");
|
||||
fi;
|
||||
dir=$(cd "$dir" && /bin/pwd -P);
|
||||
echo "$dir$base"
|
||||
}
|
||||
Reference in New Issue
Block a user