In each of your files that you can use, add instructions. Suppose the /etc/interface file is one of the files you want to use only once, then format this file as follows:
if [ ! "$ETC_INTERFACE" ] then
This ensures that statements in /etc/interface are executed only once. If the script tries to run it again, it will see that ETC_INTERFACE set and skips the body of the file.
Alternative approach
Suppose you do not want to modify the files that should be received, but it is normal to modify the scripts that invoke them. In this case, send them as follows:
[ ! "$ETC_INTERFACE" ] && source /etc/interface && export ETC_INTERFACE=Yes
source share