mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Replaced eval in grc
This commit is contained in:
parent
1f90f50d26
commit
e4874bf763
|
|
@ -314,7 +314,7 @@ forgit::revert::commit() {
|
|||
sed 's/^[^a-f^0-9]*\([a-f0-9]*\).*/\1/' |
|
||||
tr $'\n' ' ')"
|
||||
if [[ "$commits" == *[![:space:]]* ]]; then
|
||||
eval "git revert $commits"
|
||||
git revert $(echo "$commits")
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue