Skip to content

Commit

Permalink
shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
master-hax committed Nov 2, 2024
1 parent 1b331c4 commit 4bac00e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/enable_tcp_debugging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Usage: ./enable_tcp_debugging.sh <PORT>
################################################################################

setprop service.adb.tcp.port $1
setprop service.adb.tcp.port "$1"
2 changes: 1 addition & 1 deletion scripts/find_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/.$//'
2 changes: 1 addition & 1 deletion scripts/mount_ext4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/remount_vfat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bac00e

Please sign in to comment.