summaryrefslogtreecommitdiff
path: root/docs/remote-docs.sh
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2020-08-17 09:18:02 +0200
committerSascha Grunert <sgrunert@suse.com>2020-08-17 10:42:23 +0200
commitba9f18e2b87a1dc6b9f7fea304379c4e41aaaa85 (patch)
treea8eacd3359e2ce22a2ded1f7efedc39c045272b5 /docs/remote-docs.sh
parent96fb5dc94d88bc4eafe82382bfb26b64c479f76b (diff)
downloadpodman-ba9f18e2b87a1dc6b9f7fea304379c4e41aaaa85.tar.gz
podman-ba9f18e2b87a1dc6b9f7fea304379c4e41aaaa85.tar.bz2
podman-ba9f18e2b87a1dc6b9f7fea304379c4e41aaaa85.zip
Use `bash` binary from env instead of /bin/bash for scripts
It's not possible to run any of the scripts on distributions which do have `bash` not in `/bin`. This is being fixed by using `/usr/bin/env bash` instead. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'docs/remote-docs.sh')
-rwxr-xr-xdocs/remote-docs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/remote-docs.sh b/docs/remote-docs.sh
index 4774b94a3..6d520fae6 100755
--- a/docs/remote-docs.sh
+++ b/docs/remote-docs.sh
@@ -1,5 +1,6 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
# Assemble remote man pages for darwin or windows from markdown files
+set -e
PLATFORM=$1 ## linux, windows or darwin
TARGET=${2} ## where to output files