mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
16 lines
415 B
Bash
16 lines
415 B
Bash
|
#! /bin/bash
|
||
|
g-migration() {
|
||
|
[[ -z "$1" ]] && { echo "Migration version is required!" ; exit 1; }
|
||
|
local vnum=$1
|
||
|
if (($1 < 100)); then
|
||
|
vnum=0$1
|
||
|
fi
|
||
|
touch app/scripts/migrations/"$vnum".js
|
||
|
cp app/scripts/migrations/template.js app/scripts/migrations/"$vnum".js
|
||
|
|
||
|
touch test/unit/migrations/"$vnum".js
|
||
|
cp test/unit/migrations/template-test.js test/unit/migrations/"$vnum"-test.js
|
||
|
}
|
||
|
|
||
|
g-migration "$1"
|