dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c9143f4af002ba2ff94b2ad45e30aaff1e170270
parent 93b26a94aae71c8138945ab8bb4c0b59d59c9a7e
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon,  4 Nov 2019 13:24:23 -0500

conf: passes shellcheck again

Former-commit-id: c0bee999f2dec4ac3d3df181a26ca9c10eb905cf
Diffstat:
Mscripts/conf | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/conf b/scripts/conf @@ -104,7 +104,7 @@ unlink_all() { } link_specific() { grep_result="$( ( IFS=$'\n'; echo "${!mappings[*]}" ) | grep "^$1")" - if [ -n "$grep_result" ]; then + if [ -n "${grep_result}" ]; then for f in "${!mappings[@]}"; do if [[ "${f%%/*}" == "$1" ]] || [ "${f}" = "$1" ]; then do_link "${f}" "${mappings[${f}]}" @@ -126,7 +126,7 @@ do_unlink() { } unlink_specific(){ grep_result="$( ( IFS=$'\n'; echo "${!mappings[*]}" ) | grep "^$1")" - if [ -n "$grep_result" ]; then + if [ -n "${grep_result}" ]; then for f in "${!mappings[@]}"; do if [[ "${f}" == "${i}"* ]]; then do_unlink "${mappings[${f}]}"