dotfiles: leviathan: arch-openbox-20231010
This commit is contained in:
16
.local/bin/push
Executable file
16
.local/bin/push
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
function push_impl() {
|
||||
adb shell rm -rf /system/$1
|
||||
adb push $1 /system/$1
|
||||
adb shell restorecon -R /system/$1
|
||||
}
|
||||
|
||||
adb wait-for-device root && adb wait-for-device remount
|
||||
for blob in $@; do
|
||||
if [ -f $blob ] || [ -d $blob ]; then
|
||||
push_impl $blob
|
||||
else
|
||||
find -name $blob | xargs push
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user