mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-23 09:13:56 +00:00
35 lines
482 B
Bash
Executable File
35 lines
482 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
positional=()
|
|
while [[ $# -gt 0 ]]; do
|
|
argument="$1"
|
|
case $argument in
|
|
-h|--help)
|
|
printf "%s\n" \
|
|
"Usage: qr-clone.sh [options]" \
|
|
"" \
|
|
"Options:" \
|
|
" -h, --help display help for command"
|
|
exit 0
|
|
;;
|
|
*)
|
|
positional+=("$1")
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
|
|
set -- "${positional[@]}"
|
|
|
|
tput reset
|
|
|
|
printf "%s\n" "Restoring…"
|
|
. qr-restore.sh
|
|
|
|
if [ -n "$secret" ]; then
|
|
printf "%s\n" "Backing up…"
|
|
. qr-backup.sh
|
|
fi
|