From d7cb2eab3a70b7167ecb87ffbd4880aa37ed816f Mon Sep 17 00:00:00 2001 From: dd Date: Wed, 22 May 2024 16:16:47 +0200 Subject: improved shell examples --- readme.md | 6 +++--- support-scripts/build-custom-vyos-build-containers.sh | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) mode change 100644 => 100755 support-scripts/build-custom-vyos-build-containers.sh 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 old mode 100644 new mode 100755 index 8c76b49..adb3f2f --- 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" # -- cgit v1.2.3