diff --git a/neko/update/native.sh b/neko/update/native.sh index 6fa1a74c..0445c0ff 100755 --- a/neko/update/native.sh +++ b/neko/update/native.sh @@ -24,8 +24,8 @@ fi # write version info say "Writing version info to package.json..." -running "sed -e \"s/\\\"version\\\": \\\"\\([^+][^+]*\\).*\\\",$/\\\"version\\\": \\\"\\\\1+neko:$(version)\\\",/\" package.json > package.json.new && mv -- package.json.new package.json" -sed -e "s/\"version\": \"\([^+][^+]*\).*\",$/\"version\": \"\\1+neko:$(version)\",/" package.json > package.json.new && mv -- package.json.new package.json +running "sed \"s/\\\"version\\\": \\\"\\([^+][^+]*\\).*\\\",$/\\\"version\\\": \\\"\\\\1+neko:$(version)\\\",/\" package.json > package.json.new && mv -- package.json.new package.json" +sed "s/\"version\": \"\([^+][^+]*\).*\",$/\"version\": \"\\1+neko:$(version)\",/" package.json > package.json.new && mv -- package.json.new package.json say "Done!" br diff --git a/neko/update/utils b/neko/update/utils index 156fc7e7..ca10d4ca 100644 --- a/neko/update/utils +++ b/neko/update/utils @@ -23,5 +23,5 @@ br() { version() { COMMIT_DATE=$(git show --no-patch --pretty="%cs" FETCH_HEAD | sed -e "s/-//g" | cut -c 3-) COMMIT_HASH_INITIAL=$(printf "%s" "$(git rev-parse FETCH_HEAD)" | cut -c 1) - printf "%s%s" "${COMMIT_DATE}" "${COMMIT_HASH_INITIAL}" + printf "%s.%s" "${COMMIT_DATE}" "${COMMIT_HASH_INITIAL}" }