chore: remove old prune script
This commit is contained in:
parent
2c12cd8c74
commit
f190614f61
|
@ -1,7 +1,6 @@
|
||||||
_final: prev: {
|
_final: prev: {
|
||||||
scripts = {
|
scripts = {
|
||||||
clone-term = prev.callPackage ./clone-term.nix { };
|
clone-term = prev.callPackage ./clone-term.nix { };
|
||||||
impermanence-o = prev.callPackage ./impermanence-orphan.nix { };
|
|
||||||
deploy = prev.writeShellApplication {
|
deploy = prev.writeShellApplication {
|
||||||
name = "deploy";
|
name = "deploy";
|
||||||
runtimeInputs = [ prev.nvd ];
|
runtimeInputs = [ prev.nvd ];
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ writers }:
|
|
||||||
writers.writePython3Bin "find-orphaned" { } ''
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
if len(sys.argv) != 2:
|
|
||||||
print("Please give a singular argument containing the folder to prune")
|
|
||||||
exit(1)
|
|
||||||
mountpoint = sys.argv[1]
|
|
||||||
if !os.path.exists(mountpoint)):
|
|
||||||
print("Argument has to exist")
|
|
||||||
exit(1)
|
|
||||||
with open("/proc/mounts", "r") as f:
|
|
||||||
mounts = [line.split() for line in f.readlines()]
|
|
||||||
toplevel =
|
|
||||||
current = [mountpoint]
|
|
||||||
print(os.listdir(mountpoint))
|
|
||||||
''
|
|
Loading…
Reference in a new issue