mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-04-18 09:12:27 +00:00
Fix commands not working
This commit is contained in:
parent
c9555e60ad
commit
637955f2f2
1 changed files with 2 additions and 2 deletions
|
@ -186,11 +186,11 @@ get_module_output() {
|
|||
while read -r cmd <&5; do
|
||||
# Get the key (prefix) and the actual text (output) from the received cmd
|
||||
prefix="$(echo $cmd | cut -d " " -f1)"
|
||||
output="$(echo $cmd | cut -d " " -f2-)"
|
||||
output="$(echo $cmd | cut -d " " -s -f2-)"
|
||||
|
||||
if [[ "$prefix" == "cmd" ]]; then
|
||||
key="$(echo $output | cut -d " " -f1)"
|
||||
args="$(echo $output | cut -d " " -f2-)"
|
||||
args="$(echo $output | cut -d " " -s -f2-)"
|
||||
run_str="${CMDS[$key]} $args"
|
||||
>&2 echo "CMD: $run_str ($key)"
|
||||
eval $run_str
|
||||
|
|
Loading…
Add table
Reference in a new issue