Skip to content

Commit 5e82ebb

Browse files
committed
🔧 Modified Scripts to use env for shebang.
The current shebang statements work fine on a Fedora host, But while trying to setup a development environment on non-Fedora host, It seems to cause an issue as bash doesn't always live on /bin/bash in some operating systems. The usage /usr/bin/env bash makes sure, we're pointing towards the environment. It improves our portability for the scripts for non-fedora-like hosts. Signed-off-by: nasirhm <[email protected]>
1 parent 7e61d9f commit 5e82ebb

24 files changed

+24
-24
lines changed

.travis/archlinux/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/centos/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/coverity/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/coverity_prep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/bash
1+
#!/usr/bin/env bash
22

33
set -x
44

.travis/docs/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/fedora/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/get_rawhide_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
# This file is part of libmodulemd
44
# Copyright (C) 2020 Stephen Gallagher

.travis/mageia/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/openmandriva/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

.travis/opensuse/travis-tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Exit on failures
44
set -e

0 commit comments

Comments
 (0)