mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Bash scripts create and tear down symlinks on Windows. These use the packages.txt file as input to identify the symlink locations. The scripts ignored the last line in packages.txt if it didn't end with a newline. Also, one location was missing. Resolve both issues. Closes #12422
11 lines
257 B
Bash
11 lines
257 B
Bash
#!/usr/bin/env bash
|
|
|
|
cd `dirname $0`
|
|
|
|
while read RAW_PACKAGE || [[ -n "$RAW_PACKAGE" ]]
|
|
do
|
|
PACKAGE=${RAW_PACKAGE%$'\r'}
|
|
DESTDIR=./../../modules/\@angular/${PACKAGE}
|
|
rm ${DESTDIR}/facade
|
|
mv ${DESTDIR}/facade.old ${DESTDIR}/facade
|
|
done < packages.txt
|