#!/bin/bash
set -euo pipefail
for file in $(ls ./.paths)
do
dir=$(cat ./.paths/$file)
sudo mkdir -p "$dir"
echo "$dir/$file"
sudo unlink "$dir/$file" 2>&1 > /dev/null
sudo mv "$file" "$dir"
sudo rm ./.paths/$file
done
if [ -z "$(ls ./.paths)" ]; then
sudo rmdir ./.paths
fi
Proudly self-hosted by Cole Deck. Fast loading powered by Turbo.