From 0d641e3677e37ae4a906160934e5a8b37eac2493 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Wed, 8 Jul 2020 02:18:19 -0500
Subject: [PATCH] Disable configs by marking them as nonexecuable

---
 firestarter | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/firestarter b/firestarter
index 346af4b..b611e38 100755
--- a/firestarter
+++ b/firestarter
@@ -79,6 +79,10 @@ gettarget() {
 		warn "Target is a directory: $1" 2
 		return 50
 	fi
+	if ! [ -x "$1" ]; then
+		warn "Target is disabled: $1" 2
+		return 51
+	fi
 	local firstline
 	while read -r checkline; do
 		if [ -z "$firstline" ]; then