Wednesday, January 6, 2016

Android sh script error "[: not found" or incorrect systax if;

One of the scripts i was working suddenly starting showing Android sh script error "[: not found" or incorrect systax if; errors out of blue. I couldn't figure out what just went wrong.


 Reson is file format and line ending. To fix this in NotePad ++

Edit -> EOL Conversion -> Unix
Encoding -> Encode in ANSI



No comments:

Post a Comment