This commit is contained in:
James Barnett
2016-09-24 15:04:57 -05:00
parent 8cd177fff9
commit a9dd8a29ae

4
backup
View File

@@ -50,11 +50,11 @@ echo "The following mounted BTRFS devices were found."
disk=0
while [[ $disk < 1 || $disk > $i ]]; do
for x in ${!TARGETS_ARRAY[@]}; do
echo -e "$x) ${UUIDS_ARRAY[$x]}\t(${TARGETS_ARRAY[$x]})"
echo -e "$(($x+1))) ${UUIDS_ARRAY[$x]}\t(${TARGETS_ARRAY[$x]})"
done
read -p "Select one: " disk
done
selected_uuid="${UUIDS_ARRAY[$disk]}"
selected_uuid="${UUIDS_ARRAY[$(($disk-1))]}"
echo "You selected the disk with UUID $selected_uuid."
if [[ -f /etc/conf.d/snapper ]]; then