]> Cypherpunks repositories - bass.git/commitdiff
Fix SKELSUBNAME determination in symlinked paths
authorSergey Matveev <stargrave@stargrave.org>
Fri, 2 Aug 2024 11:30:26 +0000 (14:30 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 2 Aug 2024 11:30:26 +0000 (14:30 +0300)
build/skel/common.rc

index 50bd8af851aa183a8e69775e5e8cfdea2fe73b4be39fe990c000d3425b0f8a6f..9035d159b6de504195e04417801d2ac6797169a467ca49f4d7cf567594baf391 100644 (file)
@@ -1,5 +1,7 @@
 # Check if we are in pkg/... hierarchy
-export SKELSUBNAME="${PWD#*"$(realpath $SKELPKGS/$ARCH)"}"
+SKELSUBNAME=$(realpath $PWD)
+SKELSUBNAME="${SKELSUBNAME#*"$(realpath $SKELPKGS/$ARCH)"}"
+export SKELSUBNAME
 if [ "$SKELSUBNAME" = "$PWD" ] ; then
     cat >&2 <<EOF
 You must run skel inside pkg/\$ARCH directory.