18 lines
352 B
Bash
Executable File
18 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "Usage: omarchy-iso-upload [release/omarchy.iso]"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -f ~/.config/rclone/rclone.conf ]]; then
|
|
echo "You must first configure rclone with the R2 credentials: rclone config"
|
|
exit 1
|
|
fi
|
|
|
|
rclone copy $1 Omarchy:omarchy/ -P
|
|
|
|
if [[ -f $1.sig ]]; then
|
|
rclone copy $1.sig Omarchy:omarchy/ -P
|
|
fi
|