dotfiles/bin/mount-phone

25 lines
271 B
Text
Raw Normal View History

2023-04-13 00:04:20 +02:00
#!/bin/bash
# Variable
dest=/mnt/ahurac/phone
2023-04-13 00:04:20 +02:00
# Commands building
# Create destination
create_destination=(
mkdir
-p
"$dest"
)
# Mount phone
mount_phone=(
aft-mtp-mount
"$dest"
)
# Execution
set -xe
"${create_destination[@]}"
"${mount_phone[@]}"