Updated bash script to have the shebang
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
readarray -t <<< $(cat config.json | grep \"name\" | cut -d '"' -f 4 | awk '{print $1}' | sed "s/^/\(/" | sed "s/$/\)/") # split to array $names
|
readarray -t <<< $(cat config.json | grep \"name\" | cut -d '"' -f 4 | awk '{print $1}' | sed "s/^/\(/" | sed "s/$/\)/") # split to array $names
|
||||||
|
|
||||||
for (( i=0; i<${#MAPFILE[@]}; i++ ))
|
for (( i=0; i<${#MAPFILE[@]}; i++ ))
|
||||||
|
|||||||
Reference in New Issue
Block a user