fix5
This commit is contained in:
@@ -16,8 +16,6 @@ function bootstrap {
|
|||||||
tar -xzf main.tar.gz --directory "$DESTINATION"
|
tar -xzf main.tar.gz --directory "$DESTINATION"
|
||||||
echo "directory: miaou-bash successfully deployed to $DESTINATION"
|
echo "directory: miaou-bash successfully deployed to $DESTINATION"
|
||||||
popd || return 3
|
popd || return 3
|
||||||
else
|
|
||||||
echo "directory: miaou-bash already deployed!"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local source_bin="$DESTINATION/miaou-bash/bin/miaou-bash"
|
local source_bin="$DESTINATION/miaou-bash/bin/miaou-bash"
|
||||||
@@ -25,8 +23,6 @@ function bootstrap {
|
|||||||
if ! cmp -s "$source_bin" "$dest_bin"; then
|
if ! cmp -s "$source_bin" "$dest_bin"; then
|
||||||
cp -f "$source_bin" "$dest_bin"
|
cp -f "$source_bin" "$dest_bin"
|
||||||
echo "executable: /usr/bin/miaou-bash freshly created"
|
echo "executable: /usr/bin/miaou-bash freshly created"
|
||||||
else
|
|
||||||
echo "executable: /usr/bin/miaou-bash up-to-date!"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export MIAOU_BASH_DIR="$DESTINATION/miaou-bash"
|
export MIAOU_BASH_DIR="$DESTINATION/miaou-bash"
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ function link_etc {
|
|||||||
if [[ "$(readlink "$destination/$filename")" != "$source/$filename" ]]; then
|
if [[ "$(readlink "$destination/$filename")" != "$source/$filename" ]]; then
|
||||||
ln -sf "$source/$filename" "$destination"
|
ln -sf "$source/$filename" "$destination"
|
||||||
echo "link $source/$filename updated"
|
echo "link $source/$filename updated"
|
||||||
else
|
|
||||||
echo "link $source/$filename already enabled!"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ -f "$destination/$filename" ]]; then
|
if [[ -f "$destination/$filename" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user