From 1bc5eea5274881a299da19ff5df1c7ddc61cbe93 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Aug 2016 23:38:11 +0200 Subject: fix ShellCheck warnings --- .bashrc_text | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.bashrc_text') diff --git a/.bashrc_text b/.bashrc_text index ed9bac6..2b32195 100644 --- a/.bashrc_text +++ b/.bashrc_text @@ -1,4 +1,10 @@ -[ ! -z "${BASHRC_TEXT+x}" ] && return || readonly BASHRC_TEXT=1 +#!/usr/bin/env bash + +if [ -n "${BASHRC_TEXT+x}" ]; then + return 0 +else + readonly BASHRC_TEXT=1 +fi alias dos2eol='sed --binary --in-place '"'"'s/\(\r\?\)$//'"'" alias eol2dos='sed --binary --in-place '"'"'s/\r\?$/\r/'"'" -- cgit v1.2.3