Преглед на файлове

Use the more portable shebang `/usr/bin/env bash`

Not all distros have bash in `/bin/bash`. In fact, most distros are
moving binaries away from `/bin` and into `/usr/bin` (even debian!). But
still, not all distros have bash in `/bin` or `/usr/bin`. However,
pretty much all of them have `env` in `/usr/bin`. `/usr/bin/env bash`
searches `$PATH` for the bash executable, and is the most portable
shebang to use.
Dennis Eriksen преди 1 година
родител
ревизия
122dabddc2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      autopostgresqlbackup

+ 1 - 1
autopostgresqlbackup

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # {{{ License and Copyright
 # PostgreSQL Backup Script