Skip to content

Instantly share code, notes, and snippets.

@IzakyL
IzakyL / prepare.sh
Last active February 25, 2026 15:18
A script for platforms like autodl
#!/bin/bash
set -e
DATA_DIR="/root/autodl-tmp"
CACHE_DIR="/root/.cache"
if [ -d "$DATA_DIR" ]; then
if [ -L "$CACHE_DIR" ]; then
echo "$CACHE_DIR is already a soft link"
else