- Use readlink instead of ugly "ls -l | awk" ...
This commit is contained in:
parent
0f3f2fb62e
commit
cc10aa6639
2
Makefile
2
Makefile
|
@ -658,7 +658,7 @@ $(BDIR)/CD1/dists/$(CODENAME)/main/disks-$(ARCH):
|
|||
rm -rf base-images-*; \
|
||||
if [ "$(SYMLINK)" != "" ]; then exit 0; fi; \
|
||||
if [ -L current ]; then \
|
||||
CURRENT_LINK=`ls -l current | awk '{print $$11}'`; \
|
||||
CURRENT_LINK=`readlink current`; \
|
||||
mv $$CURRENT_LINK .tmp_link; \
|
||||
rm -rf [0123456789]*; \
|
||||
mv .tmp_link $$CURRENT_LINK; \
|
||||
|
|
Loading…
Reference in New Issue