DistroHopper/config/set_dir.sh
2023-03-20 02:31:57 +01:00

12 lines
234 B
Bash
Executable file

#!/bin/bash
source distrohopper.conf
NEWDIR="$(yad --file --directory --title="Where to save VMs?")"
VMS_DIR="$NEWDIR"
echo "VMS_DIR=\"$VMS_DIR\"
export \"VMS_DIR\"" >> distrohopper.conf
export VMS_DIR
echo "New dir is: $VMS_DIR"