Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bash Headstart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cybersecurity
Bash Headstart
Commits
7c69ad61
Commit
7c69ad61
authored
2 years ago
by
Nikolaos Kakouros
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
dc8b1aa8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
headstart-core.bash
+2
-0
2 additions, 0 deletions
headstart-core.bash
lib/system
+15
-1
15 additions, 1 deletion
lib/system
with
17 additions
and
1 deletion
headstart-core.bash
+
2
−
0
View file @
7c69ad61
...
@@ -66,6 +66,8 @@ core_get_installed_version
...
@@ -66,6 +66,8 @@ core_get_installed_version
function
headstart_bootstrap
()
{
function
headstart_bootstrap
()
{
tmp_dir
=
"
${
_HEADSTART_SCRIPT_NAME
~~
}
_TMP_DIR"
tmp_dir
=
"
${
_HEADSTART_SCRIPT_NAME
~~
}
_TMP_DIR"
declare
-gx
_HEADSTART_TMP_DIR
=
"
${
!tmp_dir
}
"
declare
-gx
_HEADSTART_TMP_DIR
=
"
${
!tmp_dir
}
"
config_dir
=
"
${
_HEADSTART_SCRIPT_NAME
~~
}
_CONFIG_DIR"
declare
-gx
_HEADSTART_CONFIG_DIR
=
"
${
!config_dir
}
"
declare
-gx
_HEADSTART_VENDOR_DIR
=
"
${
_HEADSTART_CORE_DIR
}
/vendor"
declare
-gx
_HEADSTART_VENDOR_DIR
=
"
${
_HEADSTART_CORE_DIR
}
/vendor"
declare
-gx
HEADSTART_RESOURCES_DIR
=
"
${
HEADSTART_RESOURCES_DIR
-resources
}
"
declare
-gx
HEADSTART_RESOURCES_DIR
=
"
${
HEADSTART_RESOURCES_DIR
-resources
}
"
...
...
This diff is collapsed.
Click to expand it.
lib/system
+
15
−
1
View file @
7c69ad61
...
@@ -84,7 +84,21 @@ function show_subcommands() {
...
@@ -84,7 +84,21 @@ function show_subcommands() {
@go.show_subcommands
||
exit
@go.show_subcommands
||
exit
}
}
alias
__
=
'parse_args_and_options "$@"; __'
alias
__
=
'parse_args_and_options "$@"; set_plugin_env; __'
function
set_plugin_env
()
{
if
[[
"
$__go_cmd_path
"
=
~ .+/plugins/.+
]]
;
then
go_plugin_name
=
"
${
__go_cmd_path
#
$TWMN_COMMANDS_DIR
/plugins/
}
"
go_plugin_name
=
"
${
go_plugin_name
%%/*
}
"
go_plugin_path
=
"
$TWMN_COMMANDS_DIR
/plugins/
$go_plugin_name
"
export
go_plugin_name go_plugin_path
if
[[
-f
"
$_HEADSTART_CONFIG_DIR
/
$go_plugin_name
.conf"
]]
;
then
.
"
$_HEADSTART_CONFIG_DIR
/
$go_plugin_name
.conf"
fi
fi
}
function
parse_args_and_options
()
{
function
parse_args_and_options
()
{
if
[[
"
$*
"
==
*
' --complete '
*
]]
;
then
if
[[
"
$*
"
==
*
' --complete '
*
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment