mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
- Remove unecessary $(cat) - switch * to ./* to avoid entries with dashes to be treated as options - replace $* with "$@" - repeating change path serial calls - unecessary if change path is called one (get script)
16 lines
336 B
Bash
Executable File
16 lines
336 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. "$GVM_ROOT/scripts/functions"
|
|
|
|
echo
|
|
display_message "gvm gos (installed)"
|
|
echo
|
|
if [[ -d $GVM_ROOT/gos ]]; then
|
|
if [[ "$gvm_go_name" != "" ]]; then
|
|
$LS_PATH -1 "$GVM_ROOT/gos" | sed 's/^/ /g' | sed 's/^ '$gvm_go_name\$'/=> '$gvm_go_name'/g'
|
|
else
|
|
$LS_PATH -1 "$GVM_ROOT/gos" | sed 's/^/ /g'
|
|
fi
|
|
fi
|
|
echo
|
|
|