reverted windows/linux test logic and added ini parser
This commit is contained in:
@@ -4,13 +4,14 @@ import os
|
||||
import subprocess
|
||||
import platform
|
||||
import json
|
||||
import configparser
|
||||
|
||||
OS_DETECTED = platform.system()
|
||||
SCRIPT_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
if OS_DETECTED == 'Windows2':
|
||||
if OS_DETECTED == 'Windows':
|
||||
BITWARDEN_CLI_EXECUTABLE = "bw.exe"
|
||||
elif OS_DETECTED == 'Linux2':
|
||||
elif OS_DETECTED == 'Linux':
|
||||
BITWARDEN_CLI_EXECUTABLE = "bw.exe"
|
||||
else:
|
||||
print("Your OS is not supported. Only Windows and Linux are currently supported.\nDetected OS: {0}".format(OS_DETECTED))
|
||||
|
||||
Reference in New Issue
Block a user