mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-26 06:37:21 +10:00
17 lines
455 B
Bash
Executable file
17 lines
455 B
Bash
Executable file
REPO_ROOT=$(dirname $(readlink -f $0))/../..
|
|
|
|
# Export desktop environment shell configuration
|
|
export $($REPO_ROOT/docker/scripts/environment.sh)
|
|
|
|
VOLUME_NAME=$1
|
|
|
|
echo Wiping $VOLUME_NAME...
|
|
|
|
# Remove all files in the volume rather than removing the volume so that ownership permissions are preserved
|
|
docker run \
|
|
--rm \
|
|
--user root \
|
|
--volume $VOLUME_NAME:$VOLUME_PATH \
|
|
--workdir $VOLUME_PATH \
|
|
alpine:latest \
|
|
ash -c 'rm -rf ..?* .[!.]* *'
|