From e4874bf763d3d6eec94e03a07d84cf57d6f45f83 Mon Sep 17 00:00:00 2001 From: sandroid Date: Fri, 1 Apr 2022 22:01:37 +0200 Subject: [PATCH] Replaced eval in grc --- forgit.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 34dba7f..7586a77 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -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