From 82ecba66ffd3ccf42c094eb7294915a0871ec023 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Sat, 21 Dec 2019 10:25:44 -0700 Subject: [PATCH] Trimmed some unnecessary lines in ops script --- files/ops | 3 --- 1 file changed, 3 deletions(-) diff --git a/files/ops b/files/ops index 6bfec71..88e23f4 100644 --- a/files/ops +++ b/files/ops @@ -2,15 +2,12 @@ set -o errexit OPS_FILE="/etc/minecraft/ops.txt" - [ ! -e "${OPS_FILE}" ] && touch ${OPS_FILE} for OP in "$@"; do - if grep -qx "${OP}" ${OPS_FILE}; then echo "NOTICE: '${OP}' already present in OPs file"; continue fi echo "${OP}" >> ${OPS_FILE} && echo "SUCCESS: '${OP}' added to OPs file" - done