This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "running update" | |
sudo apt-get -y update | |
echo "downloading ark-deployer" | |
git clone https://github.com/ArkEcosystem/ark-deployer.git | |
echo "downloading nvm" | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
var path = require('path') | |
var _ = require('underscore'); | |
var request = require('request') | |
// Return only base file name without dir | |
function getMostRecentFileName(dir) { | |
var files = fs.readdirSync(dir); |