]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
avoid hardcoded bash path in scripts 21/head
authorHussein Ait-Lahcen <hussein.ait-lahcen@fretlink.com>
Wed, 21 Nov 2018 23:03:33 +0000 (00:03 +0100)
committerHussein Ait-Lahcen <hussein.ait-lahcen@fretlink.com>
Wed, 21 Nov 2018 23:06:59 +0000 (00:06 +0100)
files/clever-set-domain.sh
files/clever-set-drain.sh

index bf63be053399f61c5444a286a9809d23f9239f4f..4278806eaa16aa8405e86306828cb8dac95c966f 100644 (file)
@@ -1,4 +1,6 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+
+set -e
 
 function checkDomain {
   clever domain | grep "${DOMAIN}"
index 405cb28ba1987d28ce04e85a77fa8f2affd8d9c7..f37498e22c844f3957cff7687b7cbbdf3baa449f 100644 (file)
@@ -1,4 +1,6 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+
+set -e
 
 function checkDrain {
   clever drain | grep "${SYSLOG_UDP_SERVER}"