mirror of
https://git.dn42.dev/dn42/registry.git
synced 2024-12-23 05:02:58 +01:00
s/realpath/readlink -f/g
This commit is contained in:
parent
971fd22922
commit
96a58dffdd
@ -6,7 +6,7 @@ if [ "$#" -eq "0" ]
|
||||
exit
|
||||
fi
|
||||
|
||||
BASE="$(realpath "$0")"
|
||||
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
|
||||
BASE="$(dirname "$BASE")"
|
||||
cd "$BASE" || exit 1
|
||||
|
||||
|
@ -7,7 +7,7 @@ if [ $# -eq 0 ]
|
||||
exit
|
||||
fi
|
||||
|
||||
BASE="$(realpath "$0")"
|
||||
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
|
||||
BASE="$(dirname "$BASE")"
|
||||
cd "$BASE" || exit 1
|
||||
|
||||
|
@ -6,7 +6,7 @@ if [ "$#" -eq "0" ]
|
||||
exit
|
||||
fi
|
||||
|
||||
BASE="$(realpath "$0")"
|
||||
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
|
||||
BASE="$(dirname "$BASE")"
|
||||
|
||||
grep -lr $1 $BASE/data/ | while read line; do utils/schema-check/dn42-schema.py fmt -i $line; done
|
||||
|
@ -6,7 +6,7 @@ if [ $# -eq 0 ]
|
||||
exit
|
||||
fi
|
||||
|
||||
BASE="$(realpath "$0")"
|
||||
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
|
||||
BASE="$(dirname "$BASE")"
|
||||
cd "$BASE" || exit 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user