Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed May 25, 2024
1 parent d1c472a commit 15d44f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions usr/share/usability-misc/dist-installer-cli-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ Y3B83Y34PxuSIq2kokIGo8JhqfqPB/ohtTLHg/o9RhP8xmfvALRD
}

##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/get_colors.sh
#!/bin/bash

## colors
# shellcheck disable=SC2034
get_colors(){
Expand Down Expand Up @@ -183,6 +185,8 @@ fi
## BEGIN MISC ##
################
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/has.sh
#!/bin/bash

## This is just a simple wrapper around 'command -v' to avoid
## spamming '>/dev/null' throughout this function. This also guards
## against aliases and functions.
Expand All @@ -193,12 +197,15 @@ has(){
}
##### END pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/has.sh
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/capitalize_first_char.sh
#!/bin/bash

## Capitalize only the first char of a string.
capitalize_first_char(){
echo "${1:-}" | awk '{$1=toupper(substr($1,0,1))substr($1,2)}1'
}
##### END pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/capitalize_first_char.sh
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/not_as_root.sh
#!/bin/bash


## Block running as root.
Expand All @@ -212,6 +219,8 @@ ${underline}Non-Root Check:${nounderline} Running as root detected.
}
##### END pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/not_as_root.sh
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/root_cmd.sh
#!/bin/bash


## Wrapper that supports su, sudo, doas
root_cmd(){
Expand Down Expand Up @@ -290,6 +299,8 @@ get_su_cmd(){
}
##### END pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/root_cmd.sh
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/ip_syntax.sh
#!/bin/bash


## Check if variable is integer
is_integer(){
Expand Down Expand Up @@ -335,6 +346,8 @@ is_addr_port(){
}
##### END pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/ip_syntax.sh
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/get_os.sh
#!/bin/bash

## TODO: how to handle installer specific code?


Expand Down Expand Up @@ -573,6 +586,8 @@ check_not_qubes_template() {
##########################

##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/parse_opt.sh
#!/bin/bash


## ------------------- ##
## Usage of parse_opt.sh
Expand Down Expand Up @@ -724,6 +739,8 @@ range_arg(){
###################

##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/log_run_die.sh
#!/bin/bash


## Logging mechanism with easy customization of message format as well as
## standardization on how the messages are delivered.
Expand Down

0 comments on commit 15d44f0

Please sign in to comment.