diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-28 11:05:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-28 11:05:49 +0300 |
| commit | 35d14d683cc2bab8303443050e62f1b2fa3c7680 (patch) | |
| tree | 4fa38d160d69a3b374b3544c4ca38d878f41f44e /fish | |
| parent | a1272e63edc1b11bcc35882ddd0eecf844ac609e (diff) | |
Rename tmpclean to tmputils::clean with namespaced prefix
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/conf.d/supersync.fish | 2 | ||||
| -rw-r--r-- | fish/conf.d/tmputils.fish | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fish/conf.d/supersync.fish b/fish/conf.d/supersync.fish index 8298727..f042853 100644 --- a/fish/conf.d/supersync.fish +++ b/fish/conf.d/supersync.fish @@ -75,7 +75,7 @@ function supersync end supersync::gitsyncer - tmpclean + tmputils::clean # update::tools date +%s >$SUPERSYNC_STAMP_FILE.tmp diff --git a/fish/conf.d/tmputils.fish b/fish/conf.d/tmputils.fish index 80686f7..fb93b38 100644 --- a/fish/conf.d/tmputils.fish +++ b/fish/conf.d/tmputils.fish @@ -82,7 +82,7 @@ function tmpmove echo "Moved $src -> $dest" end -function __tmpclean_stat_mtime --argument file +function tmputils::__stat_mtime --argument file # Portable file mtime in seconds since epoch (Linux vs macOS) if test (uname) = Darwin stat -f %m "$file" 2>/dev/null @@ -91,9 +91,9 @@ function __tmpclean_stat_mtime --argument file end end -function tmpclean +function tmputils::clean if not test -d "$TMPUTILS_DIR" - echo "tmpclean: TMPUTILS_DIR ($TMPUTILS_DIR) does not exist" + echo "tmputils::clean: TMPUTILS_DIR ($TMPUTILS_DIR) does not exist" return 1 end @@ -122,12 +122,12 @@ function tmpclean if test -n "$newest" set mtime (math floor "$newest") else - set mtime (__tmpclean_stat_mtime "$folder") + set mtime (tmputils::__stat_mtime "$folder") end # Skip if we couldn't determine mtime if test -z "$mtime" - echo "tmpclean: skipping $folder (could not read mtime)" + echo "tmputils::clean: skipping $folder (could not read mtime)" continue end |
