mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-03 07:31:06 +01:00
Clean the symlinks finding part
This commit is contained in:
parent
802fcfe47f
commit
3eb5b0b8f8
1 changed files with 4 additions and 3 deletions
7
script
7
script
|
|
@ -267,9 +267,10 @@ find bootstrap -executable -type f | \
|
||||||
> bootstrap/EXECUTABLES.txt
|
> bootstrap/EXECUTABLES.txt
|
||||||
|
|
||||||
echo "finding symlinks..."
|
echo "finding symlinks..."
|
||||||
for LINK in $(find bootstrap -type l); do
|
find bootstrap -type l |
|
||||||
LNK=$(echo "$LINK" | sed s@^bootstrap/@@)
|
while read -r LINK; do
|
||||||
TGT=$(readlink $LINK)
|
LNK=${LINK#bootstrap/}
|
||||||
|
TGT=$(readlink "$LINK")
|
||||||
echo "$TGT←$LNK" >> bootstrap/SYMLINKS.txt
|
echo "$TGT←$LNK" >> bootstrap/SYMLINKS.txt
|
||||||
rm "$LINK"
|
rm "$LINK"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue