SkipDecryption: Fix condition

Change-Id: I3330f49214f930d481e0e237b654d44d446092bd
This commit is contained in:
sekaiacg
2021-12-04 20:14:33 +08:00
committed by bigbiff
parent 826ec47f60
commit 0df7c9ef27
+1 -1
View File
@@ -58,7 +58,7 @@ bool startupArgs::processRecoveryArgs(std::vector<std::string> args, int index)
LOGERR("argument error specifying zip file\n");
} else {
std::string ORSCommand = "install " + arg;
SkipDecryption = arg.find("@") == 1;
SkipDecryption = arg.find("@") == 0;
if (!OpenRecoveryScript::Insert_ORS_Command(ORSCommand))
return false;
}