Wikitude / wikitude-cordova-plugin-samples

Includes augmented reality sample project for Phonegap (Android and iOS) using Wikitude's augmented reality Phonegap plugin
www.wikitude.com
76 stars 61 forks source link

WikitudePhoneGapSampleGenerator.sh incorrect syntax #45

Open ghost opened 8 years ago

ghost commented 8 years ago

In WikitudePhoneGapSampleGenerator.sh, Line 41: sed -i '.original' 's/\<platform name....

The space between -i and the suffix is incorrect and prevents script from successfully installing. correct: sed -i'.original' 's/\<platform name....

(Ubuntu 14.04, sed (GNU sed) 4.2.2)

gentunian commented 8 years ago

This is happening for me too.

sed -i.original ...

solved it. It could be used without quotes. The same script uses it for -i.bak too.

~ bash --version
GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu)
~ uname -a
Linux ######## 4.2.7-300.fc23.x86_64 #1 SMP Wed Dec 9 22:28:30 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
~ sed --version
sed (GNU sed) 4.2.2