1
0
Fork 0
mirror of https://github.com/engineer-man/piston.git synced 2025-04-30 08:56:30 +02:00

api refactoring

This commit is contained in:
Brian Seymour 2021-03-12 23:01:04 -06:00
parent 5a05537a7f
commit b3d18600cd
11 changed files with 358 additions and 327 deletions
api/src

View file

@ -5,7 +5,7 @@ const platform = `${is_docker() ? 'docker' : 'baremetal'}-${
fss.read_file_sync('/etc/os-release')
.toString()
.split('\n')
.find(x=>x.startsWith('ID'))
.find(x => x.startsWith('ID'))
.replace('ID=','')
}`;
@ -17,4 +17,4 @@ module.exports = {
version: require('../package.json').version,
platform,
pkg_installed_file: '.ppman-installed' //Used as indication for if a package was installed
};
};