mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
highlight failed downloads
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
ae084196bc
commit
957746875d
@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
fail() {
|
fail() {
|
||||||
printf $1
|
printf "\e[31m$1 \e[0m\n"
|
||||||
printf "\n"
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ do
|
|||||||
then
|
then
|
||||||
f=$(echo $f | sed 's/^.*:://')
|
f=$(echo $f | sed 's/^.*:://')
|
||||||
printf "looking for source for: $f\n"
|
printf "looking for source for: $f\n"
|
||||||
if [ -f $f ]
|
if [ -f "$f" ]
|
||||||
then
|
then
|
||||||
cp -a $f "$srcdir"/$pkgname-$pkgver/
|
cp -a $f "$srcdir"/$pkgname-$pkgver/
|
||||||
else
|
else
|
||||||
@ -71,4 +70,4 @@ cd /output/aufs-util
|
|||||||
git checkout "$AUFS_TOOLS_COMMIT"
|
git checkout "$AUFS_TOOLS_COMMIT"
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
|
|
||||||
printf "All source code now in output/ directory\n'
|
printf "All source code now in output/ directory\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user