aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_text
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-13 23:38:11 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-13 23:38:11 +0200
commit1bc5eea5274881a299da19ff5df1c7ddc61cbe93 (patch)
treede2c6c9c9ae633c50941ffb244ffea91185e21a3 /.bashrc_text
parent.ghci: add :hoogle (diff)
downloadlinux-home-1bc5eea5274881a299da19ff5df1c7ddc61cbe93.tar.gz
linux-home-1bc5eea5274881a299da19ff5df1c7ddc61cbe93.zip
fix ShellCheck warnings
Diffstat (limited to '')
-rw-r--r--.bashrc_text8
1 files changed, 7 insertions, 1 deletions
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/'"'"