Update README
This commit is contained in:
6
pendora-box.py
Normal file → Executable file
6
pendora-box.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
@ -5,7 +7,7 @@ import hashlib
|
||||
import requests
|
||||
import base64
|
||||
import sys
|
||||
from os import geteuid
|
||||
from os import geteuid, chdir
|
||||
import subprocess
|
||||
from io import BytesIO
|
||||
import zipfile
|
||||
@ -434,6 +436,8 @@ def menu_choice(menu_options):
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
chdir(Path(__file__).resolve().parent) # Change current dir to source location
|
||||
|
||||
parser = argparse.ArgumentParser(description='Sync your files and starts a listener on HTTP, SMB or SMB2.')
|
||||
parser.add_argument('-u', '--update', action='store_true', help='update your files (described in config.json)')
|
||||
args = parser.parse_args()
|
||||
|
Reference in New Issue
Block a user