Skip to content

Commit

Permalink
/usr/bin/sh might break depending of shell
Browse files Browse the repository at this point in the history
/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
  • Loading branch information
HelifeWasTaken authored and Sadikum committed May 3, 2021
1 parent 2e1e32b commit e9d4558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_packages_dump.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/usr/bin/env bash

clear
echo "INSTALLING PACKAGES FOR EPITECH'S DUMP"
Expand Down

0 comments on commit e9d4558

Please sign in to comment.