generated from bfren/docker-alpine
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Major updates * Using custom Nushell build * Using latest Alpine branch * Using rm instead of del
- Loading branch information
Showing
8 changed files
with
46 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2.8 | ||
3.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2 | ||
3.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
use del.nu | ||
use dump.nu | ||
use env.nu | ||
use fs.nu | ||
use write.nu | ||
|
||
# clean temporary directories, caches and installation files | ||
export def main []: nothing -> nothing { | ||
write debug "Deleting preinstallation script." clean | ||
del force /preinstall | ||
write debug "Deleting caches." clean | ||
rm --force --recursive /tmp/* /var/lib/apt/lists/* /usr/share/man | ||
|
||
write debug "Deleting .empty files." clean | ||
del force **/.empty | ||
|
||
write debug "Deleting caches." clean | ||
del force /tmp/* /var/lib/apt/lists/* /usr/share/man | ||
fs find_name "/" ".empty" | rm --force ...$in | ||
|
||
if (env check PUBLISHING) { | ||
write debug "Deleting test files." clean | ||
del force /etc/nu/scripts/tests | ||
write debug "Deleting preinstallation script." clean | ||
rm --force /preinstall | ||
|
||
write debug "Deleting tests module." clean | ||
rm --force --recursive /etc/nu/scripts/tests | ||
} | ||
|
||
write ok "Done." clean | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters