14 lines
322 B
Bash
Executable File
14 lines
322 B
Bash
Executable File
if [[ $1 == "" ]]; then
|
|
echo "No template file specified"
|
|
fi
|
|
if [[ $2 == "" ]]; then
|
|
echo "No serial specified"
|
|
fi
|
|
if [[ $3 == "" ]]; then
|
|
echo "No reg number specified"
|
|
fi
|
|
|
|
cat $1 | sed "s/<DEVICE_SERIAL>/$2/" | sed "s/<REGISTRATION_NUMBER>/$3/" > ready_params.json
|
|
./req.sh set-device-params ready_params.json
|
|
|