Add mount OneDrive script
This commit is contained in:
parent
d991c9acfb
commit
dd60d301bf
|
@ -7,5 +7,6 @@
|
|||
(pkgs.writeShellScriptBin "clean-config" (builtins.readFile ./shell/clean-config.sh))
|
||||
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
|
||||
(pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh))
|
||||
(pkgs.writeShellScriptBin "mount-onedrive" (builtins.readFile ./shell/mount-onedrive.sh))
|
||||
];
|
||||
}
|
||||
|
|
3
system/home/scripts/shell/mount-onedrive.sh
Normal file
3
system/home/scripts/shell/mount-onedrive.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
ONEDRIVE="$HOME/OneDrive"
|
||||
[ -d "$ONEDRIVE" ] || mkdir -p "$ONEDRIVE"
|
||||
[ -z "$(ls -A "$ONEDRIVE")" ] && rclone --vfs-cache-mode writes mount --daemon OneDrive: "$ONEDRIVE"
|
Loading…
Reference in a new issue