Skip to content

Commit

Permalink
Touch up shebang's in scripts
Browse files Browse the repository at this point in the history
Stealing @saschagrunert 's idea on making the shebangs in
the demos scripts be a bit happier on more platforms.  He
adjusted Buildah in containers/buildah#1804
and I'm adjusting here.  I also chmod to 755 so that the scripts
will run right out of the box.

Signed-off-by: TomSweeneyRedHat <[email protected]>
  • Loading branch information
TomSweeneyRedHat committed Aug 20, 2019
1 parent c3b77e2 commit efcf12e
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions building/buildah_intro/buildah_intro.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# buildah_intro.sh demo script.
# This script will demonstrate at an introductory level
Expand Down Expand Up @@ -144,7 +144,7 @@ buildah_using_from_scratch() {
sudo buildah run $newcontainer -- ls -alF /usr/local/bin

/bin/cat > ./runecho.sh <<- "EOF"
#!/bin/bash
#!/usr/bin/env bash
for i in {1..9};
do
echo "This is a new container from buildahdemo [" $i "]"
Expand Down
2 changes: 1 addition & 1 deletion podman_cli/podman_images.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# podman_images.sh demo script.
# This script will demonstrate at an introductory level
Expand Down
2 changes: 1 addition & 1 deletion podman_cli/podman_pause_unpause.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# podman_pause_unpause.sh demo script.
# This script will demonstrate at an introductory level
Expand Down
2 changes: 1 addition & 1 deletion running/BuildahInPodman/building_ctr_wo_root.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# building_ctr_wo_root.sh demo script.
# This script will demonstrate how you can use
Expand Down
2 changes: 1 addition & 1 deletion running/ReplacingDocker/podman.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# podmah.sh demo script.
# This script will demonstrate a lot of the features of podman, concentrating
Expand Down
2 changes: 1 addition & 1 deletion running/SELinuxEscape/breakout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# breakout.sh demo script.
# This script will demonstrate a lot of the features of podman, concentrating
Expand Down
2 changes: 1 addition & 1 deletion running/SELinuxEscape/podman.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# podmah.sh demo script.
# This script will demonstrate a lot of the features of podman, concentrating
Expand Down
2 changes: 1 addition & 1 deletion running/generatekube/kubedemo-openshift.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

trap 'exit 0' INT

Expand Down
2 changes: 1 addition & 1 deletion running/generatekube/kubedemo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

trap 'exit 0' INT

Expand Down
2 changes: 2 additions & 0 deletions security/SELinuxUdica/SELinuxUdica.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env sh

read -p "Using SELinux with container runtimes "
echo ""

Expand Down
2 changes: 1 addition & 1 deletion security/security_demo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# security_demo.sh demo script.
# This script will demonstrate security features of buildah,podman,skopeo and cri-o
Expand Down

0 comments on commit efcf12e

Please sign in to comment.