Skip to content

Commit 04d6edd

Browse files
committed
fix: More hotfixes
1 parent ddfad34 commit 04d6edd

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

pkg/lib/commands/do-init.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ EOF
124124
bprint.info "Created $file5"
125125
;;
126126
full)
127-
if ! git clone -q 'https://github.com/hyperupcall/template-bash' .; then
127+
local repo='github.com/hyperupcall/template-bash'
128+
if ! git clone -q "https://$repo" .; then
128129
bprint.die "Could not clone the full bash template"
129130
fi
131+
bprint.info "Cloned $repo"
130132
;;
131133
esac
132134
}

pkg/lib/commands/do-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ do-run() {
3030
local bin_name="${args[0]}"
3131
if util.get_toml_array "$BASALT_LOCAL_PROJECT_DIR/basalt.toml" 'binDirs'; then
3232
for bin_dir in "${REPLIES[@]}"; do
33-
for bin_file in "$bin_dir"/*; do
33+
for bin_file in "$BASALT_LOCAL_PROJECT_DIR/$bin_dir"/*; do
3434
if [ -f "$bin_file" ] && [ -x "$bin_file" ]; then
3535
util.deinit
3636
exec "$bin_file" "$@"

pkg/lib/public/basalt-global.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ basalt.load() {
4040
;;
4141
esac done
4242

43+
if (($# == 0)); then
44+
printf '%s\n' "Error: basalt.load: Must specify arguments
45+
46+
Usage:
47+
basalt.load [flags] <package> <file>
48+
49+
Pass '--help' for more info"
50+
return 1
51+
fi
52+
4353
local __basalt_pkg_path="${1:-}"
4454
local __basalt_file="${2:-}"
4555

pkg/lib/util/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ Usage:
343343
basalt global <global-subcommand> [args...]
344344
345345
Local subcommands:
346-
init
346+
init <--bare|--full>
347347
Creates a new Basalt package in the current directory
348348
349349
add <package>

0 commit comments

Comments
 (0)