mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +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
|
||||
|
||||
echo "finding symlinks..."
|
||||
for LINK in $(find bootstrap -type l); do
|
||||
LNK=$(echo "$LINK" | sed s@^bootstrap/@@)
|
||||
TGT=$(readlink $LINK)
|
||||
find bootstrap -type l |
|
||||
while read -r LINK; do
|
||||
LNK=${LINK#bootstrap/}
|
||||
TGT=$(readlink "$LINK")
|
||||
echo "$TGT←$LNK" >> bootstrap/SYMLINKS.txt
|
||||
rm "$LINK"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue