Update to display after parsing args
This commit is contained in:
1 file changed
+5
-5
+5
-5
@@ -147,11 +147,6 @@ show_disk_usage() {
|
|||||||
main() {
|
main() {
|
||||||
print_header "Omarchy Repository Cleaner"
|
print_header "Omarchy Repository Cleaner"
|
||||||
|
|
||||||
print_info "Mirror: $MIRROR"
|
|
||||||
print_info "Architecture: $ARCH"
|
|
||||||
print_info "Repository: $REPO_DIR"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Parse command line arguments
|
# Parse command line arguments
|
||||||
DRY_RUN=false
|
DRY_RUN=false
|
||||||
REMOVE_ALL=false
|
REMOVE_ALL=false
|
||||||
@@ -211,6 +206,11 @@ main() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
print_info "Mirror: $MIRROR"
|
||||||
|
print_info "Architecture: $ARCH"
|
||||||
|
print_info "Repository: $REPO_DIR"
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Validate keep versions
|
# Validate keep versions
|
||||||
if ! [[ "$KEEP_VERSIONS" =~ ^[0-9]+$ ]] || [[ "$KEEP_VERSIONS" -lt 1 ]]; then
|
if ! [[ "$KEEP_VERSIONS" =~ ^[0-9]+$ ]] || [[ "$KEEP_VERSIONS" -lt 1 ]]; then
|
||||||
print_error "Error: --keep must be a positive integer"
|
print_error "Error: --keep must be a positive integer"
|
||||||
|
|||||||
Reference in new issue
Block a user