From 002c572413e13c52069c691c4f1804a35ef77697 Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 17 Oct 2021 16:08:52 -0700 Subject: refactor --- home/xyz/.local/bin/cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home/xyz') diff --git a/home/xyz/.local/bin/cfg b/home/xyz/.local/bin/cfg index 0be822ef..aab6b089 100755 --- a/home/xyz/.local/bin/cfg +++ b/home/xyz/.local/bin/cfg @@ -1,7 +1,7 @@ #!/bin/sh # didn't consider $HOME contain space? need improve? -while getopts clLsSmM opt; do +while getopts clsmM opt; do case $opt in c) dir="$HOME" cmd="git --git-dir=$dir/.cfg$opt/ --work-tree=$dir" -- cgit v1.2.3-70-g09d2