Skip to content

Commit

Permalink
Merge pull request #2 from powerAn2020/patch-1
Browse files Browse the repository at this point in the history
修复命令行无效的BUG
  • Loading branch information
powerAn2020 authored Feb 13, 2025
2 parents 090a49c + d1486ac commit 4ff51c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ crontab: `/system/xbin/crontab`
```shell
# 创建任务 (也可以直接编辑文件)
echo '30 4 * * * echo "" > /data/adb/crond/run.log' >> /data/adb/crond/root # for root user
# 查看任务
crontab -l
```
6 changes: 3 additions & 3 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ mkdir -p "${MODPATH}/system/xbin"
{
echo "#!/system/bin/sh"
if [ "$KSU" = true ]; then
echo "/data/adb/ksu/bin/busybox crontab -c '${cronDataDir}' $@"
echo "/data/adb/ksu/bin/busybox crontab -c '${cronDataDir}'"' $@'
elif [ "$APATCH" = true ]; then
echo "/data/adb/ap/bin/busybox crontab -c '${cronDataDir}' $@"
echo "/data/adb/ap/bin/busybox crontab -c '${cronDataDir}'"' $@'
else
echo "/data/adb/magisk/busybox crontab -c '${cronDataDir}' $@"
echo "/data/adb/magisk/busybox crontab -c '${cronDataDir}'"' $@'
fi
} > "${MODPATH}/system/xbin/crontab"

Expand Down
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.0.1",
"versionCode": 101,
"zipUrl": "https://github.com/powerAn2020/crond4android/releases/download/1.0.1/crond4android_v1.0.1.zip",
"version": "1.0.2",
"versionCode": 102,
"zipUrl": "https://github.com/powerAn2020/crond4android/releases/download/1.0.2/crond4android_v1.0.2.zip",
"changelog": "https://raw.githubusercontent.com/powerAn2020/crond4android/main/changelog.json"
}

0 comments on commit 4ff51c0

Please sign in to comment.