Skip to content

Commit 2c6545e

Browse files
committed
Code clean up
1 parent 527aea5 commit 2c6545e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aliasme.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ _excute() {
8989
eval arg=\$$i
9090
cmds+=$arg\
9191
done
92-
eval "${line//\?/$cmds}"
92+
eval ${line//\?/$cmds}
9393
else
94-
fills=(${cmdType// / })
94+
fills=($cmdType)
9595
for i in $(seq 1 ${fills[2]}); do
9696
let num=$i+1
9797
eval arg=\$$num
@@ -151,7 +151,7 @@ al(){
151151
if [ $1 = "ls" ]; then
152152
_list
153153
elif [ $1 = "add" ]; then
154-
_add $2 "$3" $4 $5
154+
_add $2 $3 $4 $5
155155
elif [ $1 = "rm" ]; then
156156
_remove $2
157157
elif [ $1 = "-h" ]; then

0 commit comments

Comments
 (0)