parent
2ddae45d67
commit
1765ae8714
22
quickget
22
quickget
|
@ -352,6 +352,23 @@ function list_csv() {
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function create_config() {
|
||||||
|
local OS="${1}"
|
||||||
|
local DESTINATION="${2}"
|
||||||
|
local USE
|
||||||
|
|
||||||
|
if [[ "${DESTINATION}" == "http://"* ]] || [[ "${DESTINATION}" == "https://"* ]]; then
|
||||||
|
web_get "${DESTINATION}" "${OS}"
|
||||||
|
echo "#TODO: create config!"
|
||||||
|
elif [[ "${DESTINATION}" == "/"* ]]; then
|
||||||
|
cp "${OS}" "${DESTINATION}"/
|
||||||
|
echo "#TODO: create config!"
|
||||||
|
else
|
||||||
|
echo "You forget write full path?" && exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
function list_supported() {
|
function list_supported() {
|
||||||
# output OS RELEASE EDITION (usefull for straight testing...)
|
# output OS RELEASE EDITION (usefull for straight testing...)
|
||||||
local DL=""
|
local DL=""
|
||||||
|
@ -3508,8 +3525,9 @@ case "${1}" in
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
'--create-config'|'-cc')
|
'--create-config'|'-cc')
|
||||||
just="custom"
|
just="config"
|
||||||
echo "TODO:"
|
shift
|
||||||
|
create_config "${@}"
|
||||||
;;
|
;;
|
||||||
'--open-homepage'|'-o')
|
'--open-homepage'|'-o')
|
||||||
if [ -z "$(os_info "${2}")" ]; then
|
if [ -z "$(os_info "${2}")" ]; then
|
||||||
|
|
Loading…
Reference in New Issue