📅  最后修改于: 2022-03-11 14:50:11.548000             🧑  作者: Mango
if [ "$result" == "1" ]
then
echo "test" >> /home/samurai/test.txt
fi
if [[ "$result" -eq "1" ]]
then
echo "test" >> /home/samurai/test.txt
fi