superslicer-prerelease/start-superslicer.sh
2021-09-07 18:57:36 +02:00

15 lines
373 B
Bash

#!/bin/bash
import_settings()
{
if [ -d "$1" ] && [ ! -d "$HOME/.config/SuperSlicer-alpha" ]
then
echo "import data from $1 to the new data folder ~/.config/SuperSlicer-alpha"
cp -r "$HOME/.SuperSlicer" "$HOME/.config/SuperSlicer-alpha"
fi
}
import_settings "$HOME/.config/SuperSlicer"
import_settings "$HOME/.SuperSlicer"
/usr/share/SuperSlicer/superslicer "$@"