Files
shell_scripts/isfolder.sh
2019-11-08 11:36:37 +01:00

23 lines
197 B
Bash
Executable File

#!/bin/bash
test_and_copy() {
if [ -d $1 ] ;
then
cp -R $1 $2
fi
}
if [ -f $1 ] ;
then
cp $1 $2
fi
}
a=auguste
folder=$HOME/Documents/2FA
dest=$HOME/Desktop
test_and_copy "$folder" "$dest"