summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2024-05-22 16:16:47 +0200
committerdd <dd@wx.tnyzeq.icu>2024-05-22 16:16:47 +0200
commitd7cb2eab3a70b7167ecb87ffbd4880aa37ed816f (patch)
tree025018a5ad741ef3fa5d6263b4256e2c3c294474
parent06077d5061f95da26387212fd1ca44ea4df2b89e (diff)
downloadvyos-jenkins-d7cb2eab3a70b7167ecb87ffbd4880aa37ed816f.tar.gz
vyos-jenkins-d7cb2eab3a70b7167ecb87ffbd4880aa37ed816f.zip
improved shell examples
-rw-r--r--readme.md6
-rwxr-xr-x[-rw-r--r--]support-scripts/build-custom-vyos-build-containers.sh4
2 files changed, 4 insertions, 6 deletions
diff --git a/readme.md b/readme.md
index 4bca07f..0716e87 100644
--- a/readme.md
+++ b/readme.md
@@ -145,7 +145,7 @@ patches to make it work. If this changed in future then this step can be skipped
The below script clones the (patched) vyos-build, then builds and pushes the images to your custom Docker repository.
```bash
-#!/bin/bash
+#!/usr/bin/env bash
CUSTOM_DOCKER_REPO="172.17.17.17:5000"
#
@@ -377,7 +377,7 @@ We use this as hack to fix some of vyos packaging issues.
```
cat << 'EOF' > /usr/local/bin/uncron-add
-#!/bin/bash
+#!/usr/bin/env bash
COMMAND="$1"
# this is hack to workaround a issue where vyos didn't create sagitta branch
@@ -470,7 +470,7 @@ to see what happens! If all is well you should see .deb appearing in
`/home/sentrium/web/dev.packages.vyos.net/public_html/repositories/`:
```
-find /home/sentrium/web/dev.packages.vyos.net/public_html/repositories/ -name *.deb -print
+find /home/sentrium/web/dev.packages.vyos.net/public_html/repositories/ -name '*.deb' -print
```
If build fails then click the specific build number and check **Console Output** for hints why it does so.
diff --git a/support-scripts/build-custom-vyos-build-containers.sh b/support-scripts/build-custom-vyos-build-containers.sh
index 8c76b49..adb3f2f 100644..100755
--- a/support-scripts/build-custom-vyos-build-containers.sh
+++ b/support-scripts/build-custom-vyos-build-containers.sh
@@ -1,6 +1,4 @@
-
-#!/bin/bash
-
+#!/usr/bin/env bash
CUSTOM_DOCKER_REPO="172.17.17.17:5000"
#