[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-12-31 16:38:33 +03:00
parent c9c24b2c12
commit 37d7f32d0d

@ -88,6 +88,10 @@ try:
nginx:latest \ nginx:latest \
-c 'echo "server{listen 80; root /app; location / {autoindex on;}}" > /etc/nginx/conf.d/default.conf; nginx -g "daemon off;"' -c 'echo "server{listen 80; root /app; location / {autoindex on;}}" > /etc/nginx/conf.d/default.conf; nginx -g "daemon off;"'
''', shell=True) ''', shell=True)
elif sys.argv[1] == 'wl-screenshot':
subprocess.check_call(r'''
grim -g "$(slurp)" - | wl-copy
''', shell=True)
else: else:
raise NotImplementedError raise NotImplementedError
except: except: