distribution/packages/tools/scrapers/Skyscraper/scripts/skyscraper
2022-02-05 09:23:32 -05:00

20 lines
479 B
Bash
Executable file

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
. /etc/profile
# Set common paths
SKYSCRAPER_HOME_CONFIG=/storage/.config/skyscraper
SKYSCRAPER_HOME=/storage/.skyscraper
# create link to config directory
if [ ! -L ${SKYSCRAPER_HOME} ]; then
cp -r ${SKYSCRAPER_HOME}/* ${SKYSCRAPER_HOME_CONFIG}/
rm -rf ${SKYSCRAPER_HOME}
ln -s ${SKYSCRAPER_HOME_CONFIG} ${SKYSCRAPER_HOME}
fi
Skyscraper "$@"