From 9f8b6b38e0f65da7ff416f6e6dc4fe25ebaccf9d Mon Sep 17 00:00:00 2001 From: CrimsonTome Date: Sun, 26 Feb 2023 05:17:40 +0000 Subject: [PATCH] chore: more shellcheck --- .talismanrc | 2 +- fedora/.bashrc.d/.bash_aliases | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.talismanrc b/.talismanrc index d71d79a..3b9457c 100644 --- a/.talismanrc +++ b/.talismanrc @@ -2,5 +2,5 @@ fileignoreconfig: - filename: fedora/.bashrc checksum: 50343b6939422a69285d997490f765d983d739a4f1bfc53d3ae060ed9fb2f45c - filename: fedora/.bashrc.d/.bash_aliases - checksum: bb0c560b022611bd0cc0dfcd3e0d591dee044835fa713d64e3b677b80ffd08cf + checksum: 5278a3160e90c5fc886009a4cd7403b4d064370b0432936c743a237e85b2c7da version: "1.0" diff --git a/fedora/.bashrc.d/.bash_aliases b/fedora/.bashrc.d/.bash_aliases index 16ea356..af7bb65 100644 --- a/fedora/.bashrc.d/.bash_aliases +++ b/fedora/.bashrc.d/.bash_aliases @@ -29,7 +29,7 @@ alias gpl='git pull' #pull updates from a git repo alias gph='git push' #push local updates to a git repo alias gl='git log' #check git log # commit is a script that makes sure I follow conventional commits -if [ -f $HOME/bin/commit ] ; then +if [ -f "$HOME"/bin/commit ] ; then alias gcm='commit' fi alias gs='git status' #check git status @@ -156,20 +156,20 @@ ex () { if [ -f "$1" ] ; then case $1 in - *.tar.bz2) tar xjf $1 ;; - *.tar.gz) tar xzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xf $1 ;; - *.tbz2) tar xjf $1 ;; - *.tgz) tar xzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1;; - *.7z) 7z x $1 ;; - *.deb) ar x $1 ;; - *.tar.xz) tar xf $1 ;; - *.tar.zst) unzstd $1 ;; + *.tar.bz2) tar xjf "$1" ;; + *.tar.gz) tar xzf "$1" ;; + *.bz2) bunzip2 "$1" ;; + *.rar) unrar x "$1" ;; + *.gz) gunzip "$1" ;; + *.tar) tar xf "$1" ;; + *.tbz2) tar xjf "$1" ;; + *.tgz) tar xzf "$1" ;; + *.zip) unzip "$1" ;; + *.Z) uncompress "$1";; + *.7z) 7z x "$1" ;; + *.deb) ar x "$1" ;; + *.tar.xz) tar xf "$1" ;; + *.tar.zst) unzstd "$1" ;; *) echo "'$1' cannot be extracted via ex()" ;; esac else