1
실행됩니다 ./test: line 5: [: too many arguments
왜 작동하지 않는 : 나는 내가 메시지를 가지고 실행 한 후확인 당신은 실행하고 내가 작성한이 스크립트 동작
#!/bin/sh
DEVICE=`sysctl hw.machine`
if [ $DEVICE = "hw.machine: iPhone3,1" ]
then
echo "Test Done"
else
echo "Test failed"
fi
를?