commit 39add6e17fc7677207f3c75fd5922ee462b2bf2c parent 3388ca6f2a3501b0c186413a88fb3c6f12051d00 Author: Hugo Soucy <hugo@soucy.cc> Date: Thu, 4 Feb 2021 13:14:43 -0500 Change the init command to set the web site sample through git Diffstat:
M | satelito/init.lua | | | 15 | ++++++++++----- |
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/satelito/init.lua b/satelito/init.lua @@ -44,12 +44,15 @@ init = parser:command('init', 'Init the sample website in your $HOME folder.') args = parser:parse() if args['init'] then - os.execute('curl -s https://soucy.cc/satelito-sample.tar.gz -o ~/satelito-sample.tar.gz') - os.execute('tar -xvzf ~/satelito-sample.tar.gz -C ~/') - os.execute('ls -la ~/sample') + os.execute('mkdir ~/satelito-sample') + os.execute('git clone git://soucy.cc/satelito-sample.git ~/satelito-sample') + print('--------------------------------------------------------------------------------------------') + os.execute('ls -la ~/satelito-sample') + print('--------------------------------------------------------------------------------------------') + print('You shoul rename `~/satelito-sample` and edit `~/sample/config.lua` according to your needs.') + print('--------------------------------------------------------------------------------------------') - print('-----------------------------------------------------------------------------------') - print('You shoul rename `~/sample` and edit `~/sample/config.lua` according to your needs.') + return end if args['file'] and file.is_markdown(args['file']) then @@ -90,4 +93,6 @@ if args['pipeline'] then os.exit() end end + + return end