make source added and working
This commit is contained in:
parent
fc176298a1
commit
4861c600d4
7
Makefile
7
Makefile
|
@ -8,9 +8,10 @@ source:
|
||||||
@while IFS= read -r line; do \
|
@while IFS= read -r line; do \
|
||||||
name=$$(printf "%s" "$$line" | awk -F "\t" '{print $$1}'); \
|
name=$$(printf "%s" "$$line" | awk -F "\t" '{print $$1}'); \
|
||||||
repo=$$(printf "%s" "$$line" | awk -F "\t" '{print $$2}'); \
|
repo=$$(printf "%s" "$$line" | awk -F "\t" '{print $$2}'); \
|
||||||
if [ ! -d "/var/packages/$${name}" ]; then \
|
dir="/var/packages/$${name}"; \
|
||||||
mkdir -p "/var/packages/$${name}"; \
|
if [ ! -d "$$dir" ]; then \
|
||||||
git clone "$$repo" "/var/packages/$${name}"; \
|
mkdir -p "$$dir"; \
|
||||||
|
git clone "$$repo" "$$dir"; \
|
||||||
else \
|
else \
|
||||||
printf "%s already cloned\\n" "$${name}"; \
|
printf "%s already cloned\\n" "$${name}"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|
Loading…
Reference in New Issue