dotfiles/bin/mount-phone

18 lines
201 B
Text
Raw Normal View History

#!/bin/sh
2023-04-13 00:04:20 +02:00
# Variable
if [ -n "$1" ]; then
dest="$1"
shift
else
dest=/mnt/ahurac/phone
fi
2023-04-13 00:04:20 +02:00
# Execution
set -xe
mkdir -p "$dest"
aft-mtp-mount "$dest"
set +x
echo "Mounted on: \"${dest}\""
2023-04-13 00:04:20 +02:00