diff --git a/scripts/enable_tcp_debugging.sh b/scripts/enable_tcp_debugging.sh index c8a17ab..2cbffaa 100644 --- a/scripts/enable_tcp_debugging.sh +++ b/scripts/enable_tcp_debugging.sh @@ -6,4 +6,4 @@ # Usage: ./enable_tcp_debugging.sh ################################################################################ -setprop service.adb.tcp.port $1 +setprop service.adb.tcp.port "$1" diff --git a/scripts/find_device.sh b/scripts/find_device.sh index a3c8689..418727d 100644 --- a/scripts/find_device.sh +++ b/scripts/find_device.sh @@ -8,4 +8,4 @@ # TODO: show a "not found" message -blkid -t UUID="$(cat $1)" | awk -v col=1 '{print $col}' | sed 's/.$//' +blkid -t UUID="$(cat "$1")" | awk -v col=1 '{print $col}' | sed 's/.$//' diff --git a/scripts/mount_ext4.sh b/scripts/mount_ext4.sh index b71b2b0..f720b1a 100644 --- a/scripts/mount_ext4.sh +++ b/scripts/mount_ext4.sh @@ -12,7 +12,7 @@ if [ "$(readlink /proc/self/ns/mnt)" != "$(readlink /proc/1/ns/mnt)" ]; then fi mkdir -p -v /mnt/my_drive -mount -t ext4 -o nosuid,nodev,noexec,noatime $1 /mnt/my_drive +mount -t ext4 -o nosuid,nodev,noexec,noatime "$1" /mnt/my_drive mkdir -p -v /mnt/my_drive/the_binding chmod -R 777 /mnt/my_drive diff --git a/scripts/remount_vfat.sh b/scripts/remount_vfat.sh index 42927ab..8e1b4d7 100644 --- a/scripts/remount_vfat.sh +++ b/scripts/remount_vfat.sh @@ -27,7 +27,7 @@ if [ ! -d "$mounted_drive_path" ]; then exit 1 fi -fs_type=$(stat -f -c %T $mounted_drive_path) +fs_type=$(stat -f -c %T "$mounted_drive_path") if [ "$fs_type" != "msdos" ]; then echo "detected filesystem type was not 'msdos', found $fs_type" exit 1