25 lines
273 B
Text
25 lines
273 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# Variable
|
||
|
dest="/mnt/ahurac/phone"
|
||
|
|
||
|
# Commands building
|
||
|
# Create destination
|
||
|
create_destination=(
|
||
|
mkdir
|
||
|
-p
|
||
|
"$dest"
|
||
|
)
|
||
|
|
||
|
# Mount phone
|
||
|
mount_phone=(
|
||
|
aft-mtp-mount
|
||
|
"$dest"
|
||
|
)
|
||
|
|
||
|
# Execution
|
||
|
set -xe
|
||
|
"${create_destination[@]}"
|
||
|
"${mount_phone[@]}"
|
||
|
|