20 lines
185 B
Bash
Executable File
20 lines
185 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
|
|
}
|
|
|
|
folder=$HOME/Documents/2FA
|
|
dest=$HOME/Desktop
|
|
|
|
test_and_copy "$folder" "$dest"
|