Files
qelectrotech-source-mirror/build-aux/snap/local/launchers/qelectrotech-launch
2024-09-29 15:21:20 +02:00

15 lines
278 B
Bash

#!/bin/sh
# migrate .qet directory from SNAP_USER_DATA to SNAP_USER_COMMON
from="$SNAP_USER_DATA/.qet"
to="$SNAP_USER_COMMON/.qet"
if [ ! -d "$to" ] && [ -d "$from" ]; then
echo "Migrating user data from $from to $to"
mkdir "$to"
cp -av "$from/." "$to"
fi
exec "${@}"