From e9d4558dd2f3b2028f41e6c8de62d62faccf8bec Mon Sep 17 00:00:00 2001 From: Mattis DALLEAU Date: Fri, 6 Nov 2020 09:25:23 +0400 Subject: [PATCH] /usr/bin/sh might break depending of shell /usr/bin/sh mine is linked to sh and not bash so I get : ``` ./install_packages_dump.sh: 5: ./install_packages_dump.sh: [[: not found Fedora release 32 (Thirty Two) ./install_packages_dump.sh: 10: ./install_packages_dump.sh: [[: not found Press ENTER to continue... ./install_packages_dump.sh: 15: read: arg count Warning: failed loading '/etc/yum.repos.d/teams.repo', skipping. ``` using `/usr/bin/env bash` solves the problem --- install_packages_dump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_packages_dump.sh b/install_packages_dump.sh index 73b85ca..38fe163 100755 --- a/install_packages_dump.sh +++ b/install_packages_dump.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/usr/bin/env bash clear echo "INSTALLING PACKAGES FOR EPITECH'S DUMP"