From 2c6545e5650444913436bf1ae4017115465a1654 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Mon, 4 Jan 2021 17:59:45 -0800 Subject: [PATCH] Code clean up --- aliasme.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aliasme.sh b/aliasme.sh index 79709f4..c16efdb 100644 --- a/aliasme.sh +++ b/aliasme.sh @@ -89,9 +89,9 @@ _excute() { eval arg=\$$i cmds+=$arg\ done - eval "${line//\?/$cmds}" + eval ${line//\?/$cmds} else - fills=(${cmdType// / }) + fills=($cmdType) for i in $(seq 1 ${fills[2]}); do let num=$i+1 eval arg=\$$num @@ -151,7 +151,7 @@ al(){ if [ $1 = "ls" ]; then _list elif [ $1 = "add" ]; then - _add $2 "$3" $4 $5 + _add $2 $3 $4 $5 elif [ $1 = "rm" ]; then _remove $2 elif [ $1 = "-h" ]; then