LOCATION='/home/owner/share'
# Change the destination of the resource folder(absolute path).
+# Update for syntax issue(2022.06.02).
DESTINATION_MOBILE='/home/owner/media'
DESTINATION_TV='/home/owner/content'
if [ "$1" == "-i" ]
then
- for value in "${FILE_LIST[@]}";do
+ for value in "${FILE_LIST[@]}";do
cp $LOCATION/$value $DESTINATION
done
- for value in "${DIR_LIST[@]}";do
+ for value in "${DIR_LIST[@]}";do
cp -R $LOCATION/$value $DESTINATION
done
elif [ "$1" == "-u" ]
then
- for value in "${FILE_LIST[@]}";do
+ for value in "${FILE_LIST[@]}";do
rm $DESTINATION/$value
done
for value in "${DIR_LIST[@]}";do
LOCATION='/home/owner/share'
# Change the destination of the resource folder(absolute path).
+# Update for syntax issue(2022.06.02).
DESTINATION_MOBILE='/home/owner/media'
DESTINATION_TV='/home/owner/content'
if [ "$1" == "-i" ]
then
- for value in "${FILE_LIST[@]}";do
+ for value in "${FILE_LIST[@]}";do
cp $LOCATION/$value $DESTINATION
done
- for value in "${DIR_LIST[@]}";do
+ for value in "${DIR_LIST[@]}";do
cp -R $LOCATION/$value $DESTINATION
done
elif [ "$1" == "-u" ]
then
- for value in "${FILE_LIST[@]}";do
+ for value in "${FILE_LIST[@]}";do
rm $DESTINATION/$value
done
for value in "${DIR_LIST[@]}";do