#!/bin/bash if [[ -n "$1" ]]; then cd "$1" else cd mkdir RedHat cd RedHat fi mkdir -p {RPMS/{i{3,4,5,6}86,athlon,noarch},SRPMS,SOURCES,SPECS,BUILD}