dotfiles/bin/mount-phone

17 lines
201 B
Bash
Executable file

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