lvm2/tests/refresh.sh
Marian Csontos bceb5e6eb9 Remove dependency on dlm
Also update license tags to SPDX compatible identifiers

Resolves: RHEL-54266
2024-09-13 10:03:06 +02:00

17 lines
258 B
Bash

#!/bin/bash
refresh_dirs() {
local dir=
while [[ -n "$*" ]]; do
if [[ -d "$1" ]]; then
rm -rf "$1"
fi
mkdir -p "$(dirname "$1")"
mkdir "$1"
shift
done
}
refresh_dirs ~/rpmbuild/SRPMS ~/rpmbuild/RPMS
refresh_dirs /tmp/source