diff options
author | EuAndreh <eu@euandre.org> | 2023-03-29 09:36:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-29 09:36:05 -0300 |
commit | a16e88f364356deb805c05c300084b997f70f340 (patch) | |
tree | 4923570eb430c7374b07ae3c2f15bceed906535c /bin | |
parent | bin/free-port: Try random ports over sequential ones (diff) | |
download | dotfiles-a16e88f364356deb805c05c300084b997f70f340.tar.gz dotfiles-a16e88f364356deb805c05c300084b997f70f340.tar.xz |
bin/vm: Allow VM .qcow2 images to be symlinks
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ mkdir -p "$RUNDIR" "$QCOW_DIR" "$XDG_DATA_HOME"/vm "$(dirname "$LOGS")" guess_name() { PREFIX="$1" - IMAGES="$(find "$QCOW_DIR" -type f -name "${PREFIX}*")" + IMAGES="$(find "$QCOW_DIR" '(' -type f -or -type l ')' -name "${PREFIX}*")" COUNT="$(echo "$IMAGES" | wc -l)" if [ "$COUNT" != 1 ]; then printf 'Cannot guess name with the given prefix: "%s".\n' "$PREFIX" >&2 |