mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-09 14:42:12 -04:00
test
This commit is contained in:
parent
758e152b47
commit
a43b48b2e8
4 changed files with 14 additions and 7 deletions
|
@ -14,6 +14,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0
|
||||||
* [DomU](#domu)
|
* [DomU](#domu)
|
||||||
* [Dom0](#dom0)
|
* [Dom0](#dom0)
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
|
* [Credits](#credits)
|
||||||
* [Legal](#legal)
|
* [Legal](#legal)
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
@ -60,10 +61,10 @@ this procedure](https://www.qubes-os.org/doc/how-to-copy-from-dom0/#copying-to-d
|
||||||
|
|
||||||
2. Copy this repository from some qube to Dom0 from Dom0:
|
2. Copy this repository from some qube to Dom0 from Dom0:
|
||||||
```sh
|
```sh
|
||||||
## Example: mkdir -p ~/QubesIncoming/dev
|
|
||||||
mkdir -p ~/QubesIncoming/QUBE
|
mkdir -p ~/QubesIncoming/QUBE
|
||||||
## Example: qvm-run -p dev tar -cC /home/user qusal | tar -xvC ~/QubesIncoming/dev qusal
|
|
||||||
qvm-run -p <QUBE> tar -cC </PATH/TO> qusal | tar -xvC ~/QubesIncoming/QUBE qusal
|
qvm-run -p <QUBE> tar -cC </PATH/TO> qusal | tar -xvC ~/QubesIncoming/QUBE qusal
|
||||||
|
## Example: mkdir -p ~/QubesIncoming/dev
|
||||||
|
## Example: qvm-run -p dev tar -cC /home/user qusal | tar -xvC ~/QubesIncoming/dev qusal
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Copy the files to the Salt directories:
|
3. Copy the files to the Salt directories:
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
* [Description](#description)
|
* [Description](#description)
|
||||||
* [Installation](#installation)
|
* [Installation](#installation)
|
||||||
|
* [Usage](#usage)
|
||||||
|
* [Credits](#credits)
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
|
@ -48,4 +50,4 @@ Exit the console with `Ctrl-]`.
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
- [Unman](https://github.com/unman/shaker/tree/master/mirage)
|
- [Unman](https://github.com/unman/shaker/tree/main/mirage)
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
* [Agent](#agent)
|
* [Agent](#agent)
|
||||||
* [Generate keys](#generate-keys)
|
* [Generate keys](#generate-keys)
|
||||||
* [Limit key usage](#limit-key-usage)
|
* [Limit key usage](#limit-key-usage)
|
||||||
* [Enable and Start the service](#enable-and-start-the-service)
|
* [Reload agent](#reload-agent)
|
||||||
* [Debug Agent side](#debug-agent-side)
|
* [Debug Agent side](#debug-agent-side)
|
||||||
* [Client](#client)
|
* [Client](#client)
|
||||||
* [Enable and Start the service](#enable-and-start-the-service-1)
|
* [Enable and Start the service](#enable-and-start-the-service)
|
||||||
* [Single agent per client](#single-agent-per-client)
|
* [Single agent per client](#single-agent-per-client)
|
||||||
* [Multiple agents per client](#multiple-agents-per-client)
|
* [Multiple agents per client](#multiple-agents-per-client)
|
||||||
* [Credits](#credits)
|
* [Credits](#credits)
|
||||||
|
|
|
@ -13,19 +13,23 @@ usage(){
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${1-}" in
|
case "${1-}" in
|
||||||
""|-h|--?help) usage;;
|
""|-h|--help) usage;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
## vim-markdown-toc deletes lines if they are folded, can't rely on its native
|
## vim-markdown-toc deletes lines if they are folded, can't rely on its native
|
||||||
## update on save.
|
## update on save.
|
||||||
if ! vim -e -c 'setf markdown' -c 'if !exists(":GenTocGFM") | cq | endif' -c q
|
if ! vim -e -c 'setf markdown' -c 'if !exists(":GenTocGFM") | cq | endif' -c q
|
||||||
then
|
then
|
||||||
echo "Error: Vim Plugin mzlogin/vim-markdown-toc is not installed."
|
echo "Error: Vim Plugin mzlogin/vim-markdown-toc is not installed." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
for f in "$@"; do
|
for f in "$@"; do
|
||||||
|
if ! test -f "$f"; then
|
||||||
|
echo "Error: Not a regular file: $f" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if ! grep -q "^## Table of Contents$" "$f"; then
|
if ! grep -q "^## Table of Contents$" "$f"; then
|
||||||
echo "Could not find table of contents on file: $f" >&2; exit 1
|
echo "Could not find table of contents on file: $f" >&2; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue