diff options
author | EuAndreh <eu@euandre.org> | 2023-03-23 11:29:08 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-23 11:30:22 -0300 |
commit | e6ca6b90a0d2e9a37060a303594ce89b9f9873c6 (patch) | |
tree | 13dc9f36720a556e76d8472e2c44d83a790267ee | |
parent | bin/vm: Allow it to get QCoW2 images from remote (diff) | |
download | dotfiles-e6ca6b90a0d2e9a37060a303594ce89b9f9873c6.tar.gz dotfiles-e6ca6b90a0d2e9a37060a303594ce89b9f9873c6.tar.xz |
Makefile: Strip .qcow2 from image names
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | bin/vm | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -170,4 +170,5 @@ upload: rsync -avP $(XDG_STATE_HOME)/vm/qemu/ euandre.org:$(VM-DIR)/qemu/ ssh euandre.org find $(VM-DIR)/qemu/ -type f | \ sed 's|^$(VM-DIR)/qemu/||' | \ + sed 's|\.qcow2$$||' | \ ssh euandre.org dd of=$(VM-DIR)/vms.txt @@ -351,7 +351,7 @@ case "$ACTION" in ;; download) eval "$(assert-arg -- "$OS" 'OS')" - wget -cO "$QCOW_DIR/$OS" "$REMOTE"/qemu/"$OS" + wget -cO "$QCOW_DIR/$OS".qcow2 "$REMOTE"/qemu/"$OS".qcow2 ;; *) printf 'Unrecognized action: "%s".\n\n' "$ACTION" >&2 |