From 558cc6213e76e13cd42f88d162e9d4202fad370f Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Thu, 1 Aug 2024 20:05:58 +0200 Subject: [PATCH] v0.2 - Reworked code --- achar | 5 +++++ src/achar.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/achar b/achar index ce19e53..a3d142d 100644 --- a/achar +++ b/achar @@ -1,3 +1,4 @@ +#!/bin/bash ## Title : ACHAR - Auto Completion of Hosts Add/Remove script ## Version : 0.2 ## GIT Repo : https://git.zaks.web.za/zaks-web/achar @@ -143,6 +144,10 @@ function achar_help { echo "${line:3}" + elif [[ ${line:0:2} == "#!" ]]; then + + donothing=0 + else echo diff --git a/src/achar.sh b/src/achar.sh index ce19e53..a3d142d 100644 --- a/src/achar.sh +++ b/src/achar.sh @@ -1,3 +1,4 @@ +#!/bin/bash ## Title : ACHAR - Auto Completion of Hosts Add/Remove script ## Version : 0.2 ## GIT Repo : https://git.zaks.web.za/zaks-web/achar @@ -143,6 +144,10 @@ function achar_help { echo "${line:3}" + elif [[ ${line:0:2} == "#!" ]]; then + + donothing=0 + else echo