@XREMOTE_GET: *.dat
@XREMOTE_PRE: ln -s /home/fleuret/data/pytorch ./data
+ If a file with the same name as the script with the .xremote
+ extension appended to it exists, arguments will be read from it by
+ default.
+
If the -h option is provided @XREMOTE_HOST is ignored.
If the -i option is provided, all the files are installed and
[[ -a "$1" ]] || (help && exit 1)
main="$(basename "$1")"
+main_config="${main}.xremote"
+
+if [[ ! -f "${main}.xremote" ]]
+then
+ main_config="${main}"
+fi
cd "$(dirname "$1")"
esac
fi
-done < "${main}"
+done < "${main_config}"
######################################################################
;;
esac
fi
-done < "${main}"
+done < "${main_config}"
set +f