Compare commits
2 Commits
be86e12b8d
...
bff7796f69
| Author | SHA1 | Date | |
|---|---|---|---|
| bff7796f69 | |||
| 856df4fd50 |
@@ -8,6 +8,7 @@ fi
|
||||
mkdir -p "$dst_dir"
|
||||
./git-portfolio "$dst"
|
||||
tmp_web_footer_dir="/tmp/web-footer-$(date +%N)"
|
||||
echo Cloning web-footer to "$tmp_web_footer_dir"... >&2
|
||||
git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "$tmp_web_footer_dir"
|
||||
(cd "/tmp/web-footer" && ./automation/personalise.sh)
|
||||
echo Cleaning up... >&2
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
repos="/tmp/repos-$(cat /dev/urandom | base64 | tr -d '=+/' | head -c 8)"
|
||||
N=/dev/null
|
||||
repos="/tmp/repos-$(cat /dev/urandom 2>$N | base64 2>$N | tr -d '=+/' 2>$N | head -c 8)"
|
||||
if [ -d "$repos" ]; then
|
||||
echo "Error: Temporary directory '$repos' already exists." >&2
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p "$repos"
|
||||
tmp_portfolio="/tmp/portfolio-$(cat /dev/urandom | base64 | tr -d '=+/' | head -c 8)"
|
||||
tmp_portfolio="/tmp/portfolio-$(cat /dev/urandom 2>$N | base64 2>$N | tr -d '=+/' 2>$N | head -c 8)"
|
||||
if [ -d "$tmp_portfolio" ]; then
|
||||
echo "Error: Temporary directory '$tmp_portfolio' already exists." >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user