Compare commits

..

2 commits

Author SHA1 Message Date
accfd4408d qemush : suppression dépendance diskpath en double 2023-12-08 11:52:00 +01:00
ac443d280a qemush : fonction run -> do 2023-12-08 11:49:32 +01:00
2 changed files with 4 additions and 4 deletions

View file

@ -88,7 +88,7 @@ folder located at `~qemu/bin`. You can add them directly via `qemush` from
this repo via the following command :
```sh
qemush run 'mkdir -p ~/bin && cp -v qemu/bin/* "$_"'
qemush do 'mkdir -p ~/bin && cp -v qemu/bin/* "$_"'
```
### Extra: add `first-free-port` in `PATH`

View file

@ -47,7 +47,7 @@ ${name}: usage:
${name} shell - start a shell as user qemu
${name} help - show this help
${name} add <path to script> [<VM name>] - add a launching script
${name} run <command> - run shell input as user qemu
${name} do <command> - run shell input as user qemu
${name} depcheck - check if script dependencies are met
EOF
}
@ -120,7 +120,7 @@ public_add() {
trap - EXIT
}
public_run() {
public_do() {
exec sh -c "$*"
}
@ -129,7 +129,7 @@ bold_print() {
}
public_depcheck() {
for i in diskpath screen diskpath source-highlight ls rm cp chmod cat; do
for i in diskpath screen source-highlight ls rm cp chmod cat; do
if command -v "$i" > /dev/null; then
bold_print '1;32' OK "$i"
else