#!/bin/bash if [ "$(ls -A $1)" ]; then # echo "$1 is not empty" mv $1/* $2 #else # echo "$1 is empty" fi