- Use readlink instead of ugly "ls -l | awk" ...

This commit is contained in:
Raphaël Hertzog 2003-02-04 20:40:03 +00:00
parent 0f3f2fb62e
commit cc10aa6639
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ $(BDIR)/CD1/dists/$(CODENAME)/main/disks-$(ARCH):
rm -rf base-images-*; \ rm -rf base-images-*; \
if [ "$(SYMLINK)" != "" ]; then exit 0; fi; \ if [ "$(SYMLINK)" != "" ]; then exit 0; fi; \
if [ -L current ]; then \ if [ -L current ]; then \
CURRENT_LINK=`ls -l current | awk '{print $$11}'`; \ CURRENT_LINK=`readlink current`; \
mv $$CURRENT_LINK .tmp_link; \ mv $$CURRENT_LINK .tmp_link; \
rm -rf [0123456789]*; \ rm -rf [0123456789]*; \
mv .tmp_link $$CURRENT_LINK; \ mv .tmp_link $$CURRENT_LINK; \