From 1d2c9247839d18d121997e82274353cff65f30d8 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Mon, 2 Oct 2017 21:16:35 +0200 Subject: [PATCH] style --- rs_search | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rs_search b/rs_search index b69c231..f7e82cf 100755 --- a/rs_search +++ b/rs_search @@ -1,7 +1,8 @@ -#!/bin/bash -SCRIPTDIR="$(dirname "$0")" +#!/usr/bin/env bash + +SCRIPTDIR=$(dirname "${0}") CONF_FILE="${SCRIPTDIR}/pbpro.conf" -. "${CONF_FILE}" || { echo "Missing ${CONF_FILE}. Exiting." ; exit 1 ;}; +. "${CONF_FILE}" || { echo "Missing ${CONF_FILE}. Exiting." ; exit 1 ; } _search_by_id(){ query="user=${user}&function=do_search¶m1=${1}¶m2=¶m3=resourceid¶m4=0"