ubuntu-server-cloudimg-modify: fix location of #! shell line 49/14949/1
authorBilly O'Mahony <billy.o.mahony@intel.com>
Wed, 1 Jun 2016 08:43:19 +0000 (09:43 +0100)
committerBilly O'Mahony <billy.o.mahony@intel.com>
Wed, 1 Jun 2016 08:43:19 +0000 (09:43 +0100)
The #!/bin/bash was not on the first line of the script so the script
was run as sh not bash. This meant some obvious things like ${VAR} do
not work.

Change-Id: Ieac3e4aca8e7f34ac7985cca5b6ef12e7705f202
Signed-off-by: Billy O'Mahony<billy.o.mahony@intel.com>
Reviewed-by: Szilard Cserey <szilard.cserey@gmail.com>
Reviewed-by: Liang Gao <jean.gaoliang@huawei.com>
tools/ubuntu-server-cloudimg-modify.sh

index f9e0a2c..fd9eac7 100755 (executable)
@@ -1,3 +1,4 @@
+#!/bin/bash
 ##############################################################################
 # Copyright (c) 2015 Ericsson AB and others.
 #
@@ -7,8 +8,6 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-#!/bin/bash
-
 # installs required packages
 # must be run from inside the image (either chrooted or running)